home *** CD-ROM | disk | FTP | other *** search
/ Univers Interactif 3 / INTERACTIF.BIN / mac / Planete.net / Internet Confirmés_Vrac / HyperWais.sea / HyperWais / cards.xml < prev    next >
Text File  |  1993-09-13  |  184KB  |  3,718 lines

  1. card_6857.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>6857</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_6922.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2583</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_3325.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>field</type>
  16.         <visible> <true /> </visible>
  17.         <dontWrap> <false /> </dontWrap>
  18.         <dontSearch> <false /> </dontSearch>
  19.         <sharedText> <false /> </sharedText>
  20.         <fixedLineHeight> <false /> </fixedLineHeight>
  21.         <autoTab> <false /> </autoTab>
  22.         <lockText> <true /> </lockText>
  23.         <rect>
  24.             <left>191</left>
  25.             <top>203</top>
  26.             <right>483</right>
  27.             <bottom>240</bottom>
  28.         </rect>
  29.         <style>scrolling</style>
  30.         <autoSelect> <false /> </autoSelect>
  31.         <showLines> <false /> </showLines>
  32.         <wideMargins> <false /> </wideMargins>
  33.         <multipleLines> <false /> </multipleLines>
  34.         <reservedFamily> 0 </reservedFamily>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>left</textAlign>
  38.         <font>Geneva</font>
  39.         <textSize>10</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <textHeight>13</textHeight>
  42.         <name>wais-sources</name>
  43.         <script>on mouseWithinballoon "This field contains the path of the source folder on your "┬¼& "disk, this is not modifiable and is automatically set by HyperWais."end mouseWithin</script>
  44.     </part>
  45.     <part>
  46.         <id>2</id>
  47.         <type>field</type>
  48.         <visible> <true /> </visible>
  49.         <dontWrap> <false /> </dontWrap>
  50.         <dontSearch> <false /> </dontSearch>
  51.         <sharedText> <false /> </sharedText>
  52.         <fixedLineHeight> <false /> </fixedLineHeight>
  53.         <autoTab> <false /> </autoTab>
  54.         <lockText> <true /> </lockText>
  55.         <rect>
  56.             <left>191</left>
  57.             <top>242</top>
  58.             <right>483</right>
  59.             <bottom>260</bottom>
  60.         </rect>
  61.         <style>rectangle</style>
  62.         <autoSelect> <false /> </autoSelect>
  63.         <showLines> <false /> </showLines>
  64.         <wideMargins> <false /> </wideMargins>
  65.         <multipleLines> <false /> </multipleLines>
  66.         <reservedFamily> 0 </reservedFamily>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>0</icon>
  69.         <textAlign>left</textAlign>
  70.         <font>Geneva</font>
  71.         <textSize>10</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <textHeight>13</textHeight>
  74.         <name>wais-documents</name>
  75.         <script>on mouseWithinballoon "This field contains the path of the document folder on your "┬¼& "disk, this is not modifiable and is automatically set by HyperWais."end mouseWithin</script>
  76.     </part>
  77.     <part>
  78.         <id>3</id>
  79.         <type>field</type>
  80.         <visible> <true /> </visible>
  81.         <dontWrap> <false /> </dontWrap>
  82.         <dontSearch> <false /> </dontSearch>
  83.         <sharedText> <false /> </sharedText>
  84.         <fixedLineHeight> <false /> </fixedLineHeight>
  85.         <autoTab> <false /> </autoTab>
  86.         <lockText> <true /> </lockText>
  87.         <rect>
  88.             <left>191</left>
  89.             <top>267</top>
  90.             <right>484</right>
  91.             <bottom>284</bottom>
  92.         </rect>
  93.         <style>rectangle</style>
  94.         <autoSelect> <false /> </autoSelect>
  95.         <showLines> <false /> </showLines>
  96.         <wideMargins> <false /> </wideMargins>
  97.         <multipleLines> <false /> </multipleLines>
  98.         <reservedFamily> 0 </reservedFamily>
  99.         <titleWidth>0</titleWidth>
  100.         <icon>0</icon>
  101.         <textAlign>left</textAlign>
  102.         <font>Geneva</font>
  103.         <textSize>10</textSize>
  104.         <textStyle>plain</textStyle>
  105.         <textHeight>13</textHeight>
  106.         <name>wais-questions</name>
  107.         <script>on mouseWithinballoon "This field contains the path of the questions folder on your "┬¼& "disk, this is not modifiable and is automatically set by HyperWais."end mouseWithin</script>
  108.     </part>
  109.     <part>
  110.         <id>5</id>
  111.         <type>field</type>
  112.         <visible> <true /> </visible>
  113.         <dontWrap> <false /> </dontWrap>
  114.         <dontSearch> <false /> </dontSearch>
  115.         <sharedText> <false /> </sharedText>
  116.         <fixedLineHeight> <false /> </fixedLineHeight>
  117.         <autoTab> <false /> </autoTab>
  118.         <lockText> <true /> </lockText>
  119.         <rect>
  120.             <left>140</left>
  121.             <top>1</top>
  122.             <right>380</right>
  123.             <bottom>24</bottom>
  124.         </rect>
  125.         <style>transparent</style>
  126.         <autoSelect> <false /> </autoSelect>
  127.         <showLines> <false /> </showLines>
  128.         <wideMargins> <false /> </wideMargins>
  129.         <multipleLines> <false /> </multipleLines>
  130.         <reservedFamily> 0 </reservedFamily>
  131.         <titleWidth>0</titleWidth>
  132.         <icon>0</icon>
  133.         <textAlign>center</textAlign>
  134.         <font>Palatino</font>
  135.         <textSize>24</textSize>
  136.         <textStyle>extend</textStyle>
  137.         <textStyle>bold</textStyle>
  138.         <textHeight>32</textHeight>
  139.         <name>edit_preferences_label</name>
  140.         <script></script>
  141.     </part>
  142.     <part>
  143.         <id>8</id>
  144.         <type>field</type>
  145.         <visible> <true /> </visible>
  146.         <dontWrap> <false /> </dontWrap>
  147.         <dontSearch> <false /> </dontSearch>
  148.         <sharedText> <false /> </sharedText>
  149.         <fixedLineHeight> <false /> </fixedLineHeight>
  150.         <autoTab> <false /> </autoTab>
  151.         <lockText> <true /> </lockText>
  152.         <rect>
  153.             <left>25</left>
  154.             <top>203</top>
  155.             <right>191</right>
  156.             <bottom>221</bottom>
  157.         </rect>
  158.         <style>transparent</style>
  159.         <autoSelect> <false /> </autoSelect>
  160.         <showLines> <false /> </showLines>
  161.         <wideMargins> <false /> </wideMargins>
  162.         <multipleLines> <false /> </multipleLines>
  163.         <reservedFamily> 0 </reservedFamily>
  164.         <titleWidth>0</titleWidth>
  165.         <icon>0</icon>
  166.         <textAlign>left</textAlign>
  167.         <font>Geneva</font>
  168.         <textSize>10</textSize>
  169.         <textStyle>plain</textStyle>
  170.         <textHeight>13</textHeight>
  171.         <name>wais_sources_label</name>
  172.         <script></script>
  173.     </part>
  174.     <part>
  175.         <id>9</id>
  176.         <type>field</type>
  177.         <visible> <true /> </visible>
  178.         <dontWrap> <false /> </dontWrap>
  179.         <dontSearch> <false /> </dontSearch>
  180.         <sharedText> <false /> </sharedText>
  181.         <fixedLineHeight> <false /> </fixedLineHeight>
  182.         <autoTab> <false /> </autoTab>
  183.         <lockText> <true /> </lockText>
  184.         <rect>
  185.             <left>25</left>
  186.             <top>242</top>
  187.             <right>191</right>
  188.             <bottom>260</bottom>
  189.         </rect>
  190.         <style>transparent</style>
  191.         <autoSelect> <false /> </autoSelect>
  192.         <showLines> <false /> </showLines>
  193.         <wideMargins> <false /> </wideMargins>
  194.         <multipleLines> <false /> </multipleLines>
  195.         <reservedFamily> 0 </reservedFamily>
  196.         <titleWidth>0</titleWidth>
  197.         <icon>0</icon>
  198.         <textAlign>left</textAlign>
  199.         <font>Geneva</font>
  200.         <textSize>10</textSize>
  201.         <textStyle>plain</textStyle>
  202.         <textHeight>13</textHeight>
  203.         <name>wais_documents_label</name>
  204.         <script></script>
  205.     </part>
  206.     <part>
  207.         <id>10</id>
  208.         <type>field</type>
  209.         <visible> <true /> </visible>
  210.         <dontWrap> <false /> </dontWrap>
  211.         <dontSearch> <false /> </dontSearch>
  212.         <sharedText> <false /> </sharedText>
  213.         <fixedLineHeight> <false /> </fixedLineHeight>
  214.         <autoTab> <false /> </autoTab>
  215.         <lockText> <true /> </lockText>
  216.         <rect>
  217.             <left>25</left>
  218.             <top>267</top>
  219.             <right>191</right>
  220.             <bottom>284</bottom>
  221.         </rect>
  222.         <style>transparent</style>
  223.         <autoSelect> <false /> </autoSelect>
  224.         <showLines> <false /> </showLines>
  225.         <wideMargins> <false /> </wideMargins>
  226.         <multipleLines> <false /> </multipleLines>
  227.         <reservedFamily> 0 </reservedFamily>
  228.         <titleWidth>0</titleWidth>
  229.         <icon>0</icon>
  230.         <textAlign>left</textAlign>
  231.         <font>Geneva</font>
  232.         <textSize>10</textSize>
  233.         <textStyle>plain</textStyle>
  234.         <textHeight>13</textHeight>
  235.         <name>wais_questions_label</name>
  236.         <script></script>
  237.     </part>
  238.     <part>
  239.         <id>11</id>
  240.         <type>field</type>
  241.         <visible> <true /> </visible>
  242.         <dontWrap> <false /> </dontWrap>
  243.         <dontSearch> <false /> </dontSearch>
  244.         <sharedText> <false /> </sharedText>
  245.         <fixedLineHeight> <false /> </fixedLineHeight>
  246.         <autoTab> <false /> </autoTab>
  247.         <lockText> <true /> </lockText>
  248.         <rect>
  249.             <left>42</left>
  250.             <top>58</top>
  251.             <right>124</right>
  252.             <bottom>76</bottom>
  253.         </rect>
  254.         <style>transparent</style>
  255.         <autoSelect> <false /> </autoSelect>
  256.         <showLines> <false /> </showLines>
  257.         <wideMargins> <false /> </wideMargins>
  258.         <multipleLines> <false /> </multipleLines>
  259.         <reservedFamily> 0 </reservedFamily>
  260.         <titleWidth>0</titleWidth>
  261.         <icon>0</icon>
  262.         <textAlign>left</textAlign>
  263.         <font>Geneva</font>
  264.         <textSize>10</textSize>
  265.         <textStyle>plain</textStyle>
  266.         <textHeight>13</textHeight>
  267.         <name>ip_name_label</name>
  268.         <script></script>
  269.     </part>
  270.     <part>
  271.         <id>12</id>
  272.         <type>field</type>
  273.         <visible> <true /> </visible>
  274.         <dontWrap> <false /> </dontWrap>
  275.         <dontSearch> <false /> </dontSearch>
  276.         <sharedText> <false /> </sharedText>
  277.         <fixedLineHeight> <false /> </fixedLineHeight>
  278.         <autoTab> <false /> </autoTab>
  279.         <lockText> <true /> </lockText>
  280.         <rect>
  281.             <left>42</left>
  282.             <top>81</top>
  283.             <right>124</right>
  284.             <bottom>99</bottom>
  285.         </rect>
  286.         <style>transparent</style>
  287.         <autoSelect> <false /> </autoSelect>
  288.         <showLines> <false /> </showLines>
  289.         <wideMargins> <false /> </wideMargins>
  290.         <multipleLines> <false /> </multipleLines>
  291.         <reservedFamily> 0 </reservedFamily>
  292.         <titleWidth>0</titleWidth>
  293.         <icon>0</icon>
  294.         <textAlign>left</textAlign>
  295.         <font>Geneva</font>
  296.         <textSize>10</textSize>
  297.         <textStyle>plain</textStyle>
  298.         <textHeight>13</textHeight>
  299.         <name>ip_address_label</name>
  300.         <script></script>
  301.     </part>
  302.     <part>
  303.         <id>13</id>
  304.         <type>field</type>
  305.         <visible> <true /> </visible>
  306.         <dontWrap> <false /> </dontWrap>
  307.         <dontSearch> <false /> </dontSearch>
  308.         <sharedText> <false /> </sharedText>
  309.         <fixedLineHeight> <false /> </fixedLineHeight>
  310.         <autoTab> <false /> </autoTab>
  311.         <lockText> <true /> </lockText>
  312.         <rect>
  313.             <left>42</left>
  314.             <top>104</top>
  315.             <right>124</right>
  316.             <bottom>122</bottom>
  317.         </rect>
  318.         <style>transparent</style>
  319.         <autoSelect> <false /> </autoSelect>
  320.         <showLines> <false /> </showLines>
  321.         <wideMargins> <false /> </wideMargins>
  322.         <multipleLines> <false /> </multipleLines>
  323.         <reservedFamily> 0 </reservedFamily>
  324.         <titleWidth>0</titleWidth>
  325.         <icon>0</icon>
  326.         <textAlign>left</textAlign>
  327.         <font>Geneva</font>
  328.         <textSize>10</textSize>
  329.         <textStyle>plain</textStyle>
  330.         <textHeight>13</textHeight>
  331.         <name>tcp_port_label</name>
  332.         <script></script>
  333.     </part>
  334.     <part>
  335.         <id>15</id>
  336.         <type>field</type>
  337.         <visible> <true /> </visible>
  338.         <dontWrap> <false /> </dontWrap>
  339.         <dontSearch> <false /> </dontSearch>
  340.         <sharedText> <false /> </sharedText>
  341.         <fixedLineHeight> <false /> </fixedLineHeight>
  342.         <autoTab> <false /> </autoTab>
  343.         <lockText> <false /> </lockText>
  344.         <rect>
  345.             <left>124</left>
  346.             <top>58</top>
  347.             <right>444</right>
  348.             <bottom>76</bottom>
  349.         </rect>
  350.         <style>rectangle</style>
  351.         <autoSelect> <false /> </autoSelect>
  352.         <showLines> <false /> </showLines>
  353.         <wideMargins> <false /> </wideMargins>
  354.         <multipleLines> <false /> </multipleLines>
  355.         <reservedFamily> 0 </reservedFamily>
  356.         <titleWidth>0</titleWidth>
  357.         <icon>0</icon>
  358.         <textAlign>left</textAlign>
  359.         <font>Geneva</font>
  360.         <textSize>10</textSize>
  361.         <textStyle>plain</textStyle>
  362.         <textHeight>13</textHeight>
  363.         <name>ip_name</name>
  364.         <script>on mouseWithinballoon "This field contains the TCP/IP name of the 'firewall', for "┬¼& "example 'welchlab.welch.jhu.edu'."end mouseWithin</script>
  365.     </part>
  366.     <part>
  367.         <id>16</id>
  368.         <type>field</type>
  369.         <visible> <true /> </visible>
  370.         <dontWrap> <false /> </dontWrap>
  371.         <dontSearch> <false /> </dontSearch>
  372.         <sharedText> <false /> </sharedText>
  373.         <fixedLineHeight> <false /> </fixedLineHeight>
  374.         <autoTab> <false /> </autoTab>
  375.         <lockText> <false /> </lockText>
  376.         <rect>
  377.             <left>124</left>
  378.             <top>81</top>
  379.             <right>444</right>
  380.             <bottom>99</bottom>
  381.         </rect>
  382.         <style>rectangle</style>
  383.         <autoSelect> <false /> </autoSelect>
  384.         <showLines> <false /> </showLines>
  385.         <wideMargins> <false /> </wideMargins>
  386.         <multipleLines> <false /> </multipleLines>
  387.         <reservedFamily> 0 </reservedFamily>
  388.         <titleWidth>0</titleWidth>
  389.         <icon>0</icon>
  390.         <textAlign>left</textAlign>
  391.         <font>Geneva</font>
  392.         <textSize>10</textSize>
  393.         <textStyle>plain</textStyle>
  394.         <textHeight>13</textHeight>
  395.         <name>ip_address</name>
  396.         <script>on mouseWithinballoon "This field contains the TCP/IP address of the 'firewall', for "┬¼& "example '128.220.59.10'."end mouseWithin</script>
  397.     </part>
  398.     <part>
  399.         <id>17</id>
  400.         <type>field</type>
  401.         <visible> <true /> </visible>
  402.         <dontWrap> <false /> </dontWrap>
  403.         <dontSearch> <false /> </dontSearch>
  404.         <sharedText> <false /> </sharedText>
  405.         <fixedLineHeight> <false /> </fixedLineHeight>
  406.         <autoTab> <false /> </autoTab>
  407.         <lockText> <false /> </lockText>
  408.         <rect>
  409.             <left>124</left>
  410.             <top>104</top>
  411.             <right>444</right>
  412.             <bottom>122</bottom>
  413.         </rect>
  414.         <style>rectangle</style>
  415.         <autoSelect> <false /> </autoSelect>
  416.         <showLines> <false /> </showLines>
  417.         <wideMargins> <false /> </wideMargins>
  418.         <multipleLines> <false /> </multipleLines>
  419.         <reservedFamily> 0 </reservedFamily>
  420.         <titleWidth>0</titleWidth>
  421.         <icon>0</icon>
  422.         <textAlign>left</textAlign>
  423.         <font>Geneva</font>
  424.         <textSize>10</textSize>
  425.         <textStyle>plain</textStyle>
  426.         <textHeight>13</textHeight>
  427.         <name>tcp_port</name>
  428.         <script>on mouseWithinballoon "This field contains the TCP/IP port number of the 'firewall', for "┬¼& "example 210, this is also the default port number."end mouseWithin</script>
  429.     </part>
  430.     <part>
  431.         <id>19</id>
  432.         <type>field</type>
  433.         <visible> <true /> </visible>
  434.         <dontWrap> <false /> </dontWrap>
  435.         <dontSearch> <false /> </dontSearch>
  436.         <sharedText> <false /> </sharedText>
  437.         <fixedLineHeight> <false /> </fixedLineHeight>
  438.         <autoTab> <false /> </autoTab>
  439.         <lockText> <true /> </lockText>
  440.         <rect>
  441.             <left>21</left>
  442.             <top>32</top>
  443.             <right>213</right>
  444.             <bottom>52</bottom>
  445.         </rect>
  446.         <style>transparent</style>
  447.         <autoSelect> <false /> </autoSelect>
  448.         <showLines> <false /> </showLines>
  449.         <wideMargins> <false /> </wideMargins>
  450.         <multipleLines> <false /> </multipleLines>
  451.         <reservedFamily> 0 </reservedFamily>
  452.         <titleWidth>0</titleWidth>
  453.         <icon>0</icon>
  454.         <textAlign>left</textAlign>
  455.         <font>Palatino</font>
  456.         <textSize>14</textSize>
  457.         <textStyle>outline</textStyle>
  458.         <textStyle>bold</textStyle>
  459.         <textHeight>18</textHeight>
  460.         <name>source_label</name>
  461.         <script></script>
  462.     </part>
  463.     <part>
  464.         <id>20</id>
  465.         <type>field</type>
  466.         <visible> <true /> </visible>
  467.         <dontWrap> <false /> </dontWrap>
  468.         <dontSearch> <false /> </dontSearch>
  469.         <sharedText> <false /> </sharedText>
  470.         <fixedLineHeight> <false /> </fixedLineHeight>
  471.         <autoTab> <false /> </autoTab>
  472.         <lockText> <true /> </lockText>
  473.         <rect>
  474.             <left>23</left>
  475.             <top>174</top>
  476.             <right>176</right>
  477.             <bottom>194</bottom>
  478.         </rect>
  479.         <style>transparent</style>
  480.         <autoSelect> <false /> </autoSelect>
  481.         <showLines> <false /> </showLines>
  482.         <wideMargins> <false /> </wideMargins>
  483.         <multipleLines> <false /> </multipleLines>
  484.         <reservedFamily> 0 </reservedFamily>
  485.         <titleWidth>0</titleWidth>
  486.         <icon>0</icon>
  487.         <textAlign>left</textAlign>
  488.         <font>Palatino</font>
  489.         <textSize>14</textSize>
  490.         <textStyle>outline</textStyle>
  491.         <textStyle>bold</textStyle>
  492.         <textHeight>18</textHeight>
  493.         <name>folder_label</name>
  494.         <script></script>
  495.     </part>
  496.     <part>
  497.         <id>25</id>
  498.         <type>button</type>
  499.         <visible> <true /> </visible>
  500.         <reserved5> 0 </reserved5>
  501.         <reserved4> 0 </reserved4>
  502.         <reserved3> 0 </reserved3>
  503.         <reserved2> 0 </reserved2>
  504.         <reserved1> 0 </reserved1>
  505.         <enabled> <true /> </enabled>
  506.         <rect>
  507.             <left>122</left>
  508.             <top>129</top>
  509.             <right>140</right>
  510.             <bottom>141</bottom>
  511.         </rect>
  512.         <style>checkbox</style>
  513.         <showName> <false /> </showName>
  514.         <highlight> <false /> </highlight>
  515.         <autoHighlight> <false /> </autoHighlight>
  516.         <sharedHighlight> <true /> </sharedHighlight>
  517.         <family>0</family>
  518.         <titleWidth>0</titleWidth>
  519.         <icon>0</icon>
  520.         <textAlign>center</textAlign>
  521.         <font>Chicago</font>
  522.         <textSize>12</textSize>
  523.         <textStyle>plain</textStyle>
  524.         <name>Firewall</name>
  525.         <script>on mouseUp-- toggle the "Firewall" check boxif the hilite of me is true thenset the hilite of me to falseelse if the hilite of me is false thenset the hilite of me to trueend if-- if we want to use the firewall then we need to-- verify that the information we need is thereif the hilite of button "Firewall" is true thenif ( card field "ip_name" is empty and card field "ip_address" ┬¼is empty ) or ( card field "tcp_port" is empty ) thenanswer "You need to specify an IP Name or an IP Address and a TCP Port number to be able to use an Internet 'firewall'" with "OK"set the hilite of me to falseexit mouseUpend ifend ifend mouseUpon mouseWithinballoon "Tick this box if you want to use the 'firewall' machine "┬¼& "described above."end mouseWithin</script>
  526.     </part>
  527.     <part>
  528.         <id>27</id>
  529.         <type>field</type>
  530.         <visible> <true /> </visible>
  531.         <dontWrap> <false /> </dontWrap>
  532.         <dontSearch> <false /> </dontSearch>
  533.         <sharedText> <false /> </sharedText>
  534.         <fixedLineHeight> <false /> </fixedLineHeight>
  535.         <autoTab> <false /> </autoTab>
  536.         <lockText> <true /> </lockText>
  537.         <rect>
  538.             <left>137</left>
  539.             <top>128</top>
  540.             <right>308</right>
  541.             <bottom>145</bottom>
  542.         </rect>
  543.         <style>transparent</style>
  544.         <autoSelect> <false /> </autoSelect>
  545.         <showLines> <false /> </showLines>
  546.         <wideMargins> <false /> </wideMargins>
  547.         <multipleLines> <false /> </multipleLines>
  548.         <reservedFamily> 0 </reservedFamily>
  549.         <titleWidth>0</titleWidth>
  550.         <icon>0</icon>
  551.         <textAlign>left</textAlign>
  552.         <font>Geneva</font>
  553.         <textSize>10</textSize>
  554.         <textStyle>plain</textStyle>
  555.         <textHeight>13</textHeight>
  556.         <name>firewall_label</name>
  557.         <script></script>
  558.     </part>
  559.     <content>
  560.         <layer>card</layer>
  561.         <id>5</id>
  562.         <text>Preferences</text>
  563.     </content>
  564.     <content>
  565.         <layer>card</layer>
  566.         <id>8</id>
  567.         <text>Wais Sources Folders:</text>
  568.     </content>
  569.     <content>
  570.         <layer>card</layer>
  571.         <id>9</id>
  572.         <text>Wais Documents  Folder:</text>
  573.     </content>
  574.     <content>
  575.         <layer>card</layer>
  576.         <id>10</id>
  577.         <text>Wais Questions Folder:</text>
  578.     </content>
  579.     <content>
  580.         <layer>card</layer>
  581.         <id>11</id>
  582.         <text>IP Name:</text>
  583.     </content>
  584.     <content>
  585.         <layer>card</layer>
  586.         <id>12</id>
  587.         <text>IP Address:</text>
  588.     </content>
  589.     <content>
  590.         <layer>card</layer>
  591.         <id>13</id>
  592.         <text>TCP Port:</text>
  593.     </content>
  594.     <content>
  595.         <layer>card</layer>
  596.         <id>20</id>
  597.         <text>Wais Folders</text>
  598.     </content>
  599.     <content>
  600.         <layer>card</layer>
  601.         <id>19</id>
  602.         <text>'Firewall' Information</text>
  603.     </content>
  604.     <content>
  605.         <layer>card</layer>
  606.         <id>27</id>
  607.         <text>Use Firewall</text>
  608.     </content>
  609.     <content>
  610.         <layer>card</layer>
  611.         <id>17</id>
  612.         <text>210</text>
  613.     </content>
  614.     <content>
  615.         <layer>card</layer>
  616.         <id>1</id>
  617.         <text>bugs:HyperWais:wais-sources</text>
  618.     </content>
  619.     <content>
  620.         <layer>card</layer>
  621.         <id>2</id>
  622.         <text>bugs:HyperWais:wais-documents</text>
  623.     </content>
  624.     <content>
  625.         <layer>card</layer>
  626.         <id>3</id>
  627.         <text>bugs:HyperWais:wais-questions</text>
  628.     </content>
  629.     <name>edit_preferences</name>
  630.     <script>on initializeCard-- wais foldersglobal WaisSourcesFolderglobal WaisDocumentsFolderglobal WaisQuestionsFolder-- get our current preferencesput card field "wais-sources" of card "edit_preferences" into WaisSourcesFolderput card field "wais-documents" of card "edit_preferences" into WaisDocumentsFolderput card field "wais-questions" of card "edit_preferences" into WaisQuestionsFolder-- first check to see if these folders existif there is a folder WaisSourcesFolder and WaisSourcesFolder is not empty thenput 1 into sourcesFolderOkelseput 0 into sourcesFolderOkend ifif there is a folder WaisDocumentsFolder and WaisDocumentsFolder is not empty thenput 1 into documentsFolderOkelseput 0 into documentsFolderOkend ifif there is a folder WaisQuestionsFolder and WaisQuestionsFolder is not empty thenput 1 into questionsFolderOkelseput 0 into questionsFolderOkend if-- grab the path name of the stackput word 2 of the long name of this stack into pathNameput the length of pathName - 1 into pathNameLengthput character 2 to pathNameLength of pathName into pathName-- grab the length of the name of the stackput word 2 of the name of this stack into stackNameput the length of stackName into stackNameLengthput pathNameLength - stackNameLength into pathNameLengthput character 1 to pathNameLength + 1 of pathName into pathNameif sourcesFolderOk = 0 thenput pathName & "wais-sources" into WaisSourcesFolderif there is a folder WaisSourcesFolder thenput WaisSourcesFolder into card field "wais-sources" ┬¼of card "edit_preferences"elseput empty into card field "wais-sources" ┬¼of card "edit_preferences"put empty into WaisSourcesFolderend ifend ifif documentsFolderOk = 0 thenput pathName & "wais-documents" into WaisDocumentsFolderif there is a folder WaisDocumentsFolder thenput WaisDocumentsFolder into card field "wais-documents" ┬¼of card "edit_preferences"elseput empty into card field "wais-documents" ┬¼of card "edit_preferences"put empty into WaisDocumentsFolderend ifend ifif questionsFolderOk = 0 thenput pathName & "wais-questions" into WaisQuestionsFolderif there is a folder WaisQuestionsFolder thenput WaisQuestionsFolder into card field "wais-questions" ┬¼of card "edit_preferences"elseput empty into card field "wais-questions" ┬¼of card "edit_preferences"put empty into WaisQuestionsFolderend ifend ifreturn 0end initializeCard---------------------------------------------------------</script>
  631. </card>
  632.  
  633.  
  634. card_7231.xml
  635. <?xml version="1.0" encoding="utf-8" ?>
  636. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  637. <card>
  638.     <id>7231</id>
  639.     <filler1>0</filler1>
  640.     <bitmap>BMAP_7674.pbm</bitmap>
  641.     <cantDelete> <false /> </cantDelete>
  642.     <showPict> <true /> </showPict>
  643.     <dontSearch> <false /> </dontSearch>
  644.     <owner>2583</owner>
  645.     <link rel="stylesheet" type="text/css" href="stylesheet_3325.css" />
  646.     <part>
  647.         <id>1</id>
  648.         <type>field</type>
  649.         <visible> <true /> </visible>
  650.         <dontWrap> <false /> </dontWrap>
  651.         <dontSearch> <false /> </dontSearch>
  652.         <sharedText> <false /> </sharedText>
  653.         <fixedLineHeight> <false /> </fixedLineHeight>
  654.         <autoTab> <false /> </autoTab>
  655.         <lockText> <true /> </lockText>
  656.         <rect>
  657.             <left>140</left>
  658.             <top>1</top>
  659.             <right>380</right>
  660.             <bottom>29</bottom>
  661.         </rect>
  662.         <style>transparent</style>
  663.         <autoSelect> <false /> </autoSelect>
  664.         <showLines> <false /> </showLines>
  665.         <wideMargins> <false /> </wideMargins>
  666.         <multipleLines> <false /> </multipleLines>
  667.         <reservedFamily> 0 </reservedFamily>
  668.         <titleWidth>0</titleWidth>
  669.         <icon>0</icon>
  670.         <textAlign>center</textAlign>
  671.         <font>Palatino</font>
  672.         <textSize>24</textSize>
  673.         <textStyle>extend</textStyle>
  674.         <textStyle>bold</textStyle>
  675.         <textHeight>32</textHeight>
  676.         <name>edit_applications_label</name>
  677.         <script></script>
  678.     </part>
  679.     <part>
  680.         <id>2</id>
  681.         <type>field</type>
  682.         <visible> <true /> </visible>
  683.         <dontWrap> <false /> </dontWrap>
  684.         <dontSearch> <false /> </dontSearch>
  685.         <sharedText> <false /> </sharedText>
  686.         <fixedLineHeight> <false /> </fixedLineHeight>
  687.         <autoTab> <false /> </autoTab>
  688.         <lockText> <true /> </lockText>
  689.         <rect>
  690.             <left>46</left>
  691.             <top>32</top>
  692.             <right>157</right>
  693.             <bottom>50</bottom>
  694.         </rect>
  695.         <style>transparent</style>
  696.         <autoSelect> <false /> </autoSelect>
  697.         <showLines> <false /> </showLines>
  698.         <wideMargins> <false /> </wideMargins>
  699.         <multipleLines> <false /> </multipleLines>
  700.         <reservedFamily> 0 </reservedFamily>
  701.         <titleWidth>0</titleWidth>
  702.         <icon>0</icon>
  703.         <textAlign>left</textAlign>
  704.         <font>Palatino</font>
  705.         <textSize>14</textSize>
  706.         <textStyle>outline</textStyle>
  707.         <textStyle>bold</textStyle>
  708.         <textHeight>18</textHeight>
  709.         <name>applications_label</name>
  710.         <script></script>
  711.     </part>
  712.     <part>
  713.         <id>3</id>
  714.         <type>button</type>
  715.         <visible> <true /> </visible>
  716.         <reserved5> 0 </reserved5>
  717.         <reserved4> 0 </reserved4>
  718.         <reserved3> 0 </reserved3>
  719.         <reserved2> 0 </reserved2>
  720.         <reserved1> 0 </reserved1>
  721.         <enabled> <true /> </enabled>
  722.         <rect>
  723.             <left>252</left>
  724.             <top>34</top>
  725.             <right>280</right>
  726.             <bottom>48</bottom>
  727.         </rect>
  728.         <style>rectangle</style>
  729.         <showName> <true /> </showName>
  730.         <highlight> <false /> </highlight>
  731.         <autoHighlight> <true /> </autoHighlight>
  732.         <sharedHighlight> <true /> </sharedHighlight>
  733.         <family>0</family>
  734.         <titleWidth>0</titleWidth>
  735.         <icon>0</icon>
  736.         <textAlign>center</textAlign>
  737.         <font>Geneva</font>
  738.         <textSize>10</textSize>
  739.         <textStyle>plain</textStyle>
  740.         <name>Save</name>
  741.         <script>on mouseUp-- add a new document type/application to the summary list---- first check to see if there is a document type and and-- application in our entry fieldsif card field "document_type" is empty thenanswer "You need to specify a document type."exit mouseUpend ifif card field "application_name" is empty thenanswer "You need to specify an application."exit mouseUpend if-- if there is no file type, we just add '????'if card field "file_type" is empty thenput "????" into card field "file_type"end if-- 4 characters onlyif the length of card field "file_type" > 4 thenanswer "A file type cannot have more than 4 characters."exit mouseUpend if-- there are some types that are internally supported-- such as TEXT, WSRC, WCAT, PICT and MBIN,-- we ask the user if they want to override this?if card field "document_type" = "TEXT" or┬¼card field "document_type" = "WSRC" or┬¼card field "document_type" = "WCAT" or┬¼card field "document_type" = "PICT" or┬¼card field "document_type" = "JPEG" or┬¼card field "document_type" = "JFIF" or┬¼card field "document_type" = "JFIF-TBNL" or┬¼card field "document_type" = "TIFF" or┬¼card field "document_type" = "GIF" or┬¼card field "document_type" = "MBIN" thenanswer "This document type is internally supported, do you want to override "&┬¼"the internal support?" with "Yes" or "Cancel"-- did we cancel ?if it = "Cancel" thenexit mouseUpend ifend if-- put the card fields in variablesput card field "document_type" into documentTypeput card field "file_type" into fileTypeput card field "application_name" into applicationNameif the hilite of card button "macbinary" is true thenput 1 into macbinaryelseput 0 into macbinaryend ifput card field "application_summary" into applicationSummary-- check to see if there is already a line for this document type in-- the application summary, if there is, we just update the line in-- place and exitset the itemDelimiter to tabrepeat with i = 1 to the number of lines of applicationSummaryset cursor to busyget line i of applicationSummaryif the first item of it = documentType thenput documentType & tab & applicationName & tab & fileType ┬¼& tab & macbinary into line i of applicationSummaryput applicationSummary into card field "application_summary"exit mouseUpend ifend repeat-- the type was not found in our current application summary so we just-- append the new document type/application to itif character ( the length of applicationSummary ) of applicationSummary Γëá return┬¼and applicationSummary is not empty thenput applicationSummary & return into applicationSummaryend ifput applicationSummary &documentType & tab & applicationName & tab & fileType ┬¼& tab & macbinary into applicationSummary-- update the summary fieldput applicationSummary into card field "application_summary"end mouseUpon mouseWithinballoon "Click on this button to add the document type and application to the application summary."end mouseWithin</script>
  742.     </part>
  743.     <part>
  744.         <id>4</id>
  745.         <type>button</type>
  746.         <visible> <true /> </visible>
  747.         <reserved5> 0 </reserved5>
  748.         <reserved4> 0 </reserved4>
  749.         <reserved3> 0 </reserved3>
  750.         <reserved2> 0 </reserved2>
  751.         <reserved1> 0 </reserved1>
  752.         <enabled> <true /> </enabled>
  753.         <rect>
  754.             <left>282</left>
  755.             <top>34</top>
  756.             <right>326</right>
  757.             <bottom>48</bottom>
  758.         </rect>
  759.         <style>rectangle</style>
  760.         <showName> <true /> </showName>
  761.         <highlight> <false /> </highlight>
  762.         <autoHighlight> <false /> </autoHighlight>
  763.         <sharedHighlight> <true /> </sharedHighlight>
  764.         <family>0</family>
  765.         <titleWidth>0</titleWidth>
  766.         <icon>0</icon>
  767.         <textAlign>center</textAlign>
  768.         <font>Geneva</font>
  769.         <textSize>10</textSize>
  770.         <textStyle>plain</textStyle>
  771.         <name>Remove</name>
  772.         <script>on mouseUp-- this removes the wait type handler pointed toset hilite of me to trueif cd fld "application_summary" is empty thenset the hilite of me to falseexit mouseUpend ifdisallowInterruptionrepeat until the mouseClickif the mouseLoc is not within the rect of ┬¼cd field "application_summary" thenset cursor to handelseset cursor to plusend ifend repeatallowInterruptionif the clickLoc is not within rect of cd field "application_summary" thenset the hilite of me to falseexit mouseUpend ifput the clickLine into lineClickedput value(lineClicked) into documentTypeif doumentType = empty thenset the hilite of me to falseexit mouseUpend ifset the itemDelimiter to tabput the first item of documentType into documentType-- confirm deletion of the selected itemif the optionKey is not down thenanswer "Are you sure that you want to remove the application entry for "&┬¼"document type '"&documentType&"' from the list?" with "Cancel" or "OK"if it Γëá "OK" thenselect emptyset the hilite of me to falseexit mouseUpend ifend ifdelete lineClicked -- delete itset hilite of me to falseend mouseUpon mouseWithinballoon "Click on this button to remove an entry from the "┬¼& "application summary." & return & "To remove an entry, click on this "┬¼& "button, then click on the entry in the application summary."end mouseWithin</script>
  773.     </part>
  774.     <part>
  775.         <id>5</id>
  776.         <type>button</type>
  777.         <visible> <true /> </visible>
  778.         <reserved5> 0 </reserved5>
  779.         <reserved4> 0 </reserved4>
  780.         <reserved3> 0 </reserved3>
  781.         <reserved2> 0 </reserved2>
  782.         <reserved1> 0 </reserved1>
  783.         <enabled> <true /> </enabled>
  784.         <rect>
  785.             <left>424</left>
  786.             <top>34</top>
  787.             <right>459</right>
  788.             <bottom>48</bottom>
  789.         </rect>
  790.         <style>rectangle</style>
  791.         <showName> <true /> </showName>
  792.         <highlight> <false /> </highlight>
  793.         <autoHighlight> <true /> </autoHighlight>
  794.         <sharedHighlight> <true /> </sharedHighlight>
  795.         <family>0</family>
  796.         <titleWidth>0</titleWidth>
  797.         <icon>0</icon>
  798.         <textAlign>center</textAlign>
  799.         <font>Geneva</font>
  800.         <textSize>10</textSize>
  801.         <textStyle>plain</textStyle>
  802.         <name>OK</name>
  803.         <script>on mouseUpgo to card "query"end mouseUpon mouseWithinballoon "Click on this button to return to the 'Search Sources' "┬¼& "card."end mouseWithin</script>
  804.     </part>
  805.     <part>
  806.         <id>6</id>
  807.         <type>field</type>
  808.         <visible> <true /> </visible>
  809.         <dontWrap> <true /> </dontWrap>
  810.         <dontSearch> <false /> </dontSearch>
  811.         <sharedText> <false /> </sharedText>
  812.         <fixedLineHeight> <true /> </fixedLineHeight>
  813.         <autoTab> <false /> </autoTab>
  814.         <lockText> <true /> </lockText>
  815.         <rect>
  816.             <left>56</left>
  817.             <top>193</top>
  818.             <right>458</right>
  819.             <bottom>301</bottom>
  820.         </rect>
  821.         <style>scrolling</style>
  822.         <autoSelect> <false /> </autoSelect>
  823.         <showLines> <false /> </showLines>
  824.         <wideMargins> <false /> </wideMargins>
  825.         <multipleLines> <false /> </multipleLines>
  826.         <reservedFamily> 0 </reservedFamily>
  827.         <titleWidth>0</titleWidth>
  828.         <icon>0</icon>
  829.         <textAlign>left</textAlign>
  830.         <font>Geneva</font>
  831.         <textSize>10</textSize>
  832.         <textStyle>plain</textStyle>
  833.         <textHeight>13</textHeight>
  834.         <name>application_summary</name>
  835.         <script>on mouseUp-- put up the information of the selected entryget the clickLineput it into myClickLineselect itput ( word 2 of myClickLine )  into iif i is empty thenexit mouseUpend if-- parse the lineset the itemDelimiter to tabget line i of card field "application_summary"put the first item of it into card field "document_type"put the third item of it into card field "file_type"put the second item of it into card field "application_name"put the fourth item of it into macbinaryif macbinary = 1 thenset the hilite of card button "macbinary" to trueelseset the hilite of card button "macbinary" to falseend ifend mouseUpon mouseWithinballoon "This field contains the application summary."end mouseWithin</script>
  836.     </part>
  837.     <part>
  838.         <id>7</id>
  839.         <type>field</type>
  840.         <visible> <true /> </visible>
  841.         <dontWrap> <false /> </dontWrap>
  842.         <dontSearch> <false /> </dontSearch>
  843.         <sharedText> <false /> </sharedText>
  844.         <fixedLineHeight> <false /> </fixedLineHeight>
  845.         <autoTab> <false /> </autoTab>
  846.         <lockText> <true /> </lockText>
  847.         <rect>
  848.             <left>56</left>
  849.             <top>70</top>
  850.             <right>146</right>
  851.             <bottom>88</bottom>
  852.         </rect>
  853.         <style>transparent</style>
  854.         <autoSelect> <false /> </autoSelect>
  855.         <showLines> <false /> </showLines>
  856.         <wideMargins> <false /> </wideMargins>
  857.         <multipleLines> <false /> </multipleLines>
  858.         <reservedFamily> 0 </reservedFamily>
  859.         <titleWidth>0</titleWidth>
  860.         <icon>0</icon>
  861.         <textAlign>left</textAlign>
  862.         <font>Geneva</font>
  863.         <textSize>10</textSize>
  864.         <textStyle>plain</textStyle>
  865.         <textHeight>13</textHeight>
  866.         <name>document_type_label</name>
  867.         <script></script>
  868.     </part>
  869.     <part>
  870.         <id>8</id>
  871.         <type>field</type>
  872.         <visible> <true /> </visible>
  873.         <dontWrap> <false /> </dontWrap>
  874.         <dontSearch> <false /> </dontSearch>
  875.         <sharedText> <false /> </sharedText>
  876.         <fixedLineHeight> <false /> </fixedLineHeight>
  877.         <autoTab> <false /> </autoTab>
  878.         <lockText> <true /> </lockText>
  879.         <rect>
  880.             <left>56</left>
  881.             <top>122</top>
  882.             <right>146</right>
  883.             <bottom>140</bottom>
  884.         </rect>
  885.         <style>transparent</style>
  886.         <autoSelect> <false /> </autoSelect>
  887.         <showLines> <false /> </showLines>
  888.         <wideMargins> <false /> </wideMargins>
  889.         <multipleLines> <false /> </multipleLines>
  890.         <reservedFamily> 0 </reservedFamily>
  891.         <titleWidth>0</titleWidth>
  892.         <icon>0</icon>
  893.         <textAlign>left</textAlign>
  894.         <font>Geneva</font>
  895.         <textSize>10</textSize>
  896.         <textStyle>plain</textStyle>
  897.         <textHeight>13</textHeight>
  898.         <name>application_name_label</name>
  899.         <script></script>
  900.     </part>
  901.     <part>
  902.         <id>10</id>
  903.         <type>field</type>
  904.         <visible> <true /> </visible>
  905.         <dontWrap> <false /> </dontWrap>
  906.         <dontSearch> <false /> </dontSearch>
  907.         <sharedText> <false /> </sharedText>
  908.         <fixedLineHeight> <false /> </fixedLineHeight>
  909.         <autoTab> <false /> </autoTab>
  910.         <lockText> <false /> </lockText>
  911.         <rect>
  912.             <left>146</left>
  913.             <top>70</top>
  914.             <right>458</right>
  915.             <bottom>88</bottom>
  916.         </rect>
  917.         <style>rectangle</style>
  918.         <autoSelect> <false /> </autoSelect>
  919.         <showLines> <false /> </showLines>
  920.         <wideMargins> <false /> </wideMargins>
  921.         <multipleLines> <false /> </multipleLines>
  922.         <reservedFamily> 0 </reservedFamily>
  923.         <titleWidth>0</titleWidth>
  924.         <icon>0</icon>
  925.         <textAlign>left</textAlign>
  926.         <font>Geneva</font>
  927.         <textSize>10</textSize>
  928.         <textStyle>plain</textStyle>
  929.         <textHeight>13</textHeight>
  930.         <name>document_type</name>
  931.         <script>on mouseWithinballoon "This field contains the document type to associate with the application."end mouseWithin</script>
  932.     </part>
  933.     <part>
  934.         <id>11</id>
  935.         <type>field</type>
  936.         <visible> <true /> </visible>
  937.         <dontWrap> <false /> </dontWrap>
  938.         <dontSearch> <false /> </dontSearch>
  939.         <sharedText> <false /> </sharedText>
  940.         <fixedLineHeight> <true /> </fixedLineHeight>
  941.         <autoTab> <false /> </autoTab>
  942.         <lockText> <true /> </lockText>
  943.         <rect>
  944.             <left>146</left>
  945.             <top>122</top>
  946.             <right>458</right>
  947.             <bottom>140</bottom>
  948.         </rect>
  949.         <style>rectangle</style>
  950.         <autoSelect> <false /> </autoSelect>
  951.         <showLines> <false /> </showLines>
  952.         <wideMargins> <false /> </wideMargins>
  953.         <multipleLines> <false /> </multipleLines>
  954.         <reservedFamily> 0 </reservedFamily>
  955.         <titleWidth>0</titleWidth>
  956.         <icon>0</icon>
  957.         <textAlign>left</textAlign>
  958.         <font>Geneva</font>
  959.         <textSize>10</textSize>
  960.         <textStyle>plain</textStyle>
  961.         <textHeight>13</textHeight>
  962.         <name>application_name</name>
  963.         <script>on mouseUpsend mouseUp to card button "Select Application"end mouseUpon mouseWithinballoon "This field contains the name of the application to associate with the document type."end mouseWithin</script>
  964.     </part>
  965.     <part>
  966.         <id>13</id>
  967.         <type>button</type>
  968.         <visible> <true /> </visible>
  969.         <reserved5> 0 </reserved5>
  970.         <reserved4> 0 </reserved4>
  971.         <reserved3> 0 </reserved3>
  972.         <reserved2> 0 </reserved2>
  973.         <reserved1> 0 </reserved1>
  974.         <enabled> <true /> </enabled>
  975.         <rect>
  976.             <left>328</left>
  977.             <top>34</top>
  978.             <right>422</right>
  979.             <bottom>48</bottom>
  980.         </rect>
  981.         <style>rectangle</style>
  982.         <showName> <true /> </showName>
  983.         <highlight> <false /> </highlight>
  984.         <autoHighlight> <true /> </autoHighlight>
  985.         <sharedHighlight> <true /> </sharedHighlight>
  986.         <family>0</family>
  987.         <titleWidth>0</titleWidth>
  988.         <icon>0</icon>
  989.         <textAlign>center</textAlign>
  990.         <font>Geneva</font>
  991.         <textSize>10</textSize>
  992.         <textStyle>plain</textStyle>
  993.         <name>Select Application</name>
  994.         <script>on mouseUp-- select an application and put it into the application-- card fieldanswer file "Select an Application:" of type "APPL"put it into applicationNameif applicationName is not empty thenput applicationName into card field "application_name"end ifend mouseUpon mouseWithinballoon "Click on this button to select an application."end mouseWithin</script>
  995.     </part>
  996.     <part>
  997.         <id>15</id>
  998.         <type>field</type>
  999.         <visible> <true /> </visible>
  1000.         <dontWrap> <false /> </dontWrap>
  1001.         <dontSearch> <false /> </dontSearch>
  1002.         <sharedText> <false /> </sharedText>
  1003.         <fixedLineHeight> <false /> </fixedLineHeight>
  1004.         <autoTab> <false /> </autoTab>
  1005.         <lockText> <true /> </lockText>
  1006.         <rect>
  1007.             <left>56</left>
  1008.             <top>95</top>
  1009.             <right>146</right>
  1010.             <bottom>113</bottom>
  1011.         </rect>
  1012.         <style>transparent</style>
  1013.         <autoSelect> <false /> </autoSelect>
  1014.         <showLines> <false /> </showLines>
  1015.         <wideMargins> <false /> </wideMargins>
  1016.         <multipleLines> <false /> </multipleLines>
  1017.         <reservedFamily> 0 </reservedFamily>
  1018.         <titleWidth>0</titleWidth>
  1019.         <icon>0</icon>
  1020.         <textAlign>left</textAlign>
  1021.         <font>Geneva</font>
  1022.         <textSize>10</textSize>
  1023.         <textStyle>plain</textStyle>
  1024.         <textHeight>13</textHeight>
  1025.         <name>file_type_label</name>
  1026.         <script></script>
  1027.     </part>
  1028.     <part>
  1029.         <id>16</id>
  1030.         <type>field</type>
  1031.         <visible> <true /> </visible>
  1032.         <dontWrap> <false /> </dontWrap>
  1033.         <dontSearch> <false /> </dontSearch>
  1034.         <sharedText> <false /> </sharedText>
  1035.         <fixedLineHeight> <false /> </fixedLineHeight>
  1036.         <autoTab> <false /> </autoTab>
  1037.         <lockText> <false /> </lockText>
  1038.         <rect>
  1039.             <left>146</left>
  1040.             <top>95</top>
  1041.             <right>458</right>
  1042.             <bottom>113</bottom>
  1043.         </rect>
  1044.         <style>rectangle</style>
  1045.         <autoSelect> <false /> </autoSelect>
  1046.         <showLines> <false /> </showLines>
  1047.         <wideMargins> <false /> </wideMargins>
  1048.         <multipleLines> <false /> </multipleLines>
  1049.         <reservedFamily> 0 </reservedFamily>
  1050.         <titleWidth>0</titleWidth>
  1051.         <icon>0</icon>
  1052.         <textAlign>left</textAlign>
  1053.         <font>Geneva</font>
  1054.         <textSize>10</textSize>
  1055.         <textStyle>plain</textStyle>
  1056.         <textHeight>13</textHeight>
  1057.         <name>file_type</name>
  1058.         <script>on mouseWithinballoon "This field contains the file type which will be used to save the document."end mouseWithin</script>
  1059.     </part>
  1060.     <part>
  1061.         <id>17</id>
  1062.         <type>button</type>
  1063.         <visible> <true /> </visible>
  1064.         <reserved5> 0 </reserved5>
  1065.         <reserved4> 0 </reserved4>
  1066.         <reserved3> 0 </reserved3>
  1067.         <reserved2> 0 </reserved2>
  1068.         <reserved1> 0 </reserved1>
  1069.         <enabled> <true /> </enabled>
  1070.         <rect>
  1071.             <left>186</left>
  1072.             <top>34</top>
  1073.             <right>250</right>
  1074.             <bottom>48</bottom>
  1075.         </rect>
  1076.         <style>rectangle</style>
  1077.         <showName> <true /> </showName>
  1078.         <highlight> <false /> </highlight>
  1079.         <autoHighlight> <true /> </autoHighlight>
  1080.         <sharedHighlight> <true /> </sharedHighlight>
  1081.         <family>0</family>
  1082.         <titleWidth>0</titleWidth>
  1083.         <icon>0</icon>
  1084.         <textAlign>center</textAlign>
  1085.         <font>Geneva</font>
  1086.         <textSize>10</textSize>
  1087.         <textStyle>plain</textStyle>
  1088.         <name>Clear Entry</name>
  1089.         <script>on mouseUp-- clear the current entry fieldsput empty into card field "document_type" of card "edit_applications"put empty into card field "file_type" of card "edit_applications"put empty into card field "application_name" of card "edit_applications"set the hilite of card button "macbinary" of card "edit_applications" to falseend mouseUpon mouseWithinballoon "Click on this button to clear the entry fields."end mouseWithin</script>
  1090.     </part>
  1091.     <part>
  1092.         <id>18</id>
  1093.         <type>field</type>
  1094.         <visible> <true /> </visible>
  1095.         <dontWrap> <false /> </dontWrap>
  1096.         <dontSearch> <false /> </dontSearch>
  1097.         <sharedText> <false /> </sharedText>
  1098.         <fixedLineHeight> <false /> </fixedLineHeight>
  1099.         <autoTab> <false /> </autoTab>
  1100.         <lockText> <true /> </lockText>
  1101.         <rect>
  1102.             <left>56</left>
  1103.             <top>175</top>
  1104.             <right>174</right>
  1105.             <bottom>193</bottom>
  1106.         </rect>
  1107.         <style>transparent</style>
  1108.         <autoSelect> <false /> </autoSelect>
  1109.         <showLines> <false /> </showLines>
  1110.         <wideMargins> <false /> </wideMargins>
  1111.         <multipleLines> <false /> </multipleLines>
  1112.         <reservedFamily> 0 </reservedFamily>
  1113.         <titleWidth>0</titleWidth>
  1114.         <icon>0</icon>
  1115.         <textAlign>left</textAlign>
  1116.         <font>Geneva</font>
  1117.         <textSize>10</textSize>
  1118.         <textStyle>plain</textStyle>
  1119.         <textHeight>13</textHeight>
  1120.         <name>application_summary_label</name>
  1121.         <script></script>
  1122.     </part>
  1123.     <part>
  1124.         <id>20</id>
  1125.         <type>field</type>
  1126.         <visible> <true /> </visible>
  1127.         <dontWrap> <false /> </dontWrap>
  1128.         <dontSearch> <false /> </dontSearch>
  1129.         <sharedText> <false /> </sharedText>
  1130.         <fixedLineHeight> <false /> </fixedLineHeight>
  1131.         <autoTab> <false /> </autoTab>
  1132.         <lockText> <true /> </lockText>
  1133.         <rect>
  1134.             <left>56</left>
  1135.             <top>148</top>
  1136.             <right>146</right>
  1137.             <bottom>166</bottom>
  1138.         </rect>
  1139.         <style>transparent</style>
  1140.         <autoSelect> <false /> </autoSelect>
  1141.         <showLines> <false /> </showLines>
  1142.         <wideMargins> <false /> </wideMargins>
  1143.         <multipleLines> <false /> </multipleLines>
  1144.         <reservedFamily> 0 </reservedFamily>
  1145.         <titleWidth>0</titleWidth>
  1146.         <icon>0</icon>
  1147.         <textAlign>left</textAlign>
  1148.         <font>Geneva</font>
  1149.         <textSize>10</textSize>
  1150.         <textStyle>plain</textStyle>
  1151.         <textHeight>13</textHeight>
  1152.         <name>macbinary_label</name>
  1153.         <script></script>
  1154.     </part>
  1155.     <part>
  1156.         <id>21</id>
  1157.         <type>button</type>
  1158.         <visible> <true /> </visible>
  1159.         <reserved5> 0 </reserved5>
  1160.         <reserved4> 0 </reserved4>
  1161.         <reserved3> 0 </reserved3>
  1162.         <reserved2> 0 </reserved2>
  1163.         <reserved1> 0 </reserved1>
  1164.         <enabled> <true /> </enabled>
  1165.         <rect>
  1166.             <left>144</left>
  1167.             <top>149</top>
  1168.             <right>163</right>
  1169.             <bottom>164</bottom>
  1170.         </rect>
  1171.         <style>checkbox</style>
  1172.         <showName> <false /> </showName>
  1173.         <highlight> <false /> </highlight>
  1174.         <autoHighlight> <false /> </autoHighlight>
  1175.         <sharedHighlight> <true /> </sharedHighlight>
  1176.         <family>0</family>
  1177.         <titleWidth>0</titleWidth>
  1178.         <icon>0</icon>
  1179.         <textAlign>center</textAlign>
  1180.         <font>Chicago</font>
  1181.         <textSize>12</textSize>
  1182.         <textStyle>plain</textStyle>
  1183.         <name>macbinary</name>
  1184.         <script>on mouseUp-- toggle the "macbinary" check boxif the hilite of me is true thenset the hilite of me to falseelse if the hilite of me is false thenset the hilite of me to trueend ifend mouseUpon mouseWithinballoon "Tick this box if the document is in macbinary format  "┬¼& "and needs to be converted to be viewed or saved."end mouseWithin</script>
  1185.     </part>
  1186.     <content>
  1187.         <layer>card</layer>
  1188.         <id>1</id>
  1189.         <text>Applications</text>
  1190.     </content>
  1191.     <content>
  1192.         <layer>card</layer>
  1193.         <id>2</id>
  1194.         <text>Applications</text>
  1195.     </content>
  1196.     <content>
  1197.         <layer>card</layer>
  1198.         <id>7</id>
  1199.         <text>Document Type:</text>
  1200.     </content>
  1201.     <content>
  1202.         <layer>card</layer>
  1203.         <id>8</id>
  1204.         <text>Application:</text>
  1205.     </content>
  1206.     <content>
  1207.         <layer>card</layer>
  1208.         <id>15</id>
  1209.         <text>File Type:</text>
  1210.     </content>
  1211.     <content>
  1212.         <layer>card</layer>
  1213.         <id>18</id>
  1214.         <text>Application Summary:</text>
  1215.     </content>
  1216.     <content>
  1217.         <layer>card</layer>
  1218.         <id>20</id>
  1219.         <text>MacBinary:</text>
  1220.     </content>
  1221.     <name>edit_applications</name>
  1222.     <script>on initializeCardsend mouseUp to button "Clear Entry" of card "edit_applications"end initializeCardon closeCard-- initialize the flagput 0 into myFlag-- put the card fields in variablesput card field "document_type" into documentTypeput card field "file_type" into fileTypeput card field "application_name" into applicationNameif the hilite of card button "macbinary" is true thenput 1 into macbinaryelseput 0 into macbinaryend ifput card field "application_summary" into applicationSummary-- check to see if there are emtpy fieldsif documentType is not empty and ┬¼fileType is not empty and ┬¼applicationName is not empty thenput 1 into myFlagend if-- check to see if the user modified this entryset the itemDelimiter to tabrepeat with i = 1 to the number of lines of applicationSummaryset cursor to busyget line i of applicationSummaryif the first item of it = documentType and ┬¼the second item of it = applicationName and ┬¼the third item of it = fileType and ┬¼the fourth item of it = macbinary thenput 0 into myFlagexit repeatend ifend repeatif myFlag = 1 thenanswer "The entry was not saved, do you want to save it?"┬¼with "Cancel" or "OK"if it is "OK" thensend mouseUp to card button "Save"end ifend ifend closeCard</script>
  1223. </card>
  1224.  
  1225.  
  1226. card_5233.xml
  1227. <?xml version="1.0" encoding="utf-8" ?>
  1228. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1229. <card>
  1230.     <id>5233</id>
  1231.     <filler1>0</filler1>
  1232.     <bitmap>BMAP_6047.pbm</bitmap>
  1233.     <cantDelete> <false /> </cantDelete>
  1234.     <showPict> <true /> </showPict>
  1235.     <dontSearch> <false /> </dontSearch>
  1236.     <owner>2583</owner>
  1237.     <link rel="stylesheet" type="text/css" href="stylesheet_3325.css" />
  1238.     <part>
  1239.         <id>1</id>
  1240.         <type>field</type>
  1241.         <visible> <true /> </visible>
  1242.         <dontWrap> <false /> </dontWrap>
  1243.         <dontSearch> <false /> </dontSearch>
  1244.         <sharedText> <false /> </sharedText>
  1245.         <fixedLineHeight> <false /> </fixedLineHeight>
  1246.         <autoTab> <false /> </autoTab>
  1247.         <lockText> <true /> </lockText>
  1248.         <rect>
  1249.             <left>142</left>
  1250.             <top>66</top>
  1251.             <right>462</right>
  1252.             <bottom>84</bottom>
  1253.         </rect>
  1254.         <style>transparent</style>
  1255.         <autoSelect> <false /> </autoSelect>
  1256.         <showLines> <false /> </showLines>
  1257.         <wideMargins> <false /> </wideMargins>
  1258.         <multipleLines> <false /> </multipleLines>
  1259.         <reservedFamily> 0 </reservedFamily>
  1260.         <titleWidth>0</titleWidth>
  1261.         <icon>0</icon>
  1262.         <textAlign>left</textAlign>
  1263.         <font>Geneva</font>
  1264.         <textSize>10</textSize>
  1265.         <textStyle>plain</textStyle>
  1266.         <textHeight>13</textHeight>
  1267.         <name>source-name</name>
  1268.         <script>on mouseWithinballoon "This field contains the source name."end mouseWithin</script>
  1269.     </part>
  1270.     <part>
  1271.         <id>15</id>
  1272.         <type>field</type>
  1273.         <visible> <true /> </visible>
  1274.         <dontWrap> <false /> </dontWrap>
  1275.         <dontSearch> <false /> </dontSearch>
  1276.         <sharedText> <false /> </sharedText>
  1277.         <fixedLineHeight> <false /> </fixedLineHeight>
  1278.         <autoTab> <false /> </autoTab>
  1279.         <lockText> <false /> </lockText>
  1280.         <rect>
  1281.             <left>142</left>
  1282.             <top>87</top>
  1283.             <right>462</right>
  1284.             <bottom>105</bottom>
  1285.         </rect>
  1286.         <style>rectangle</style>
  1287.         <autoSelect> <false /> </autoSelect>
  1288.         <showLines> <false /> </showLines>
  1289.         <wideMargins> <false /> </wideMargins>
  1290.         <multipleLines> <false /> </multipleLines>
  1291.         <reservedFamily> 0 </reservedFamily>
  1292.         <titleWidth>0</titleWidth>
  1293.         <icon>0</icon>
  1294.         <textAlign>left</textAlign>
  1295.         <font>Geneva</font>
  1296.         <textSize>10</textSize>
  1297.         <textStyle>plain</textStyle>
  1298.         <textHeight>13</textHeight>
  1299.         <name>ip-name</name>
  1300.         <script>on mouseWithinballoon "This field contains the source name."end mouseWithin</script>
  1301.     </part>
  1302.     <part>
  1303.         <id>16</id>
  1304.         <type>field</type>
  1305.         <visible> <true /> </visible>
  1306.         <dontWrap> <false /> </dontWrap>
  1307.         <dontSearch> <false /> </dontSearch>
  1308.         <sharedText> <false /> </sharedText>
  1309.         <fixedLineHeight> <false /> </fixedLineHeight>
  1310.         <autoTab> <false /> </autoTab>
  1311.         <lockText> <false /> </lockText>
  1312.         <rect>
  1313.             <left>142</left>
  1314.             <top>108</top>
  1315.             <right>462</right>
  1316.             <bottom>126</bottom>
  1317.         </rect>
  1318.         <style>rectangle</style>
  1319.         <autoSelect> <false /> </autoSelect>
  1320.         <showLines> <false /> </showLines>
  1321.         <wideMargins> <false /> </wideMargins>
  1322.         <multipleLines> <false /> </multipleLines>
  1323.         <reservedFamily> 0 </reservedFamily>
  1324.         <titleWidth>0</titleWidth>
  1325.         <icon>0</icon>
  1326.         <textAlign>left</textAlign>
  1327.         <font>Geneva</font>
  1328.         <textSize>10</textSize>
  1329.         <textStyle>plain</textStyle>
  1330.         <textHeight>13</textHeight>
  1331.         <name>ip-address</name>
  1332.         <script>on mouseWithinballoon "This field contains the source name."end mouseWithin</script>
  1333.     </part>
  1334.     <part>
  1335.         <id>17</id>
  1336.         <type>field</type>
  1337.         <visible> <true /> </visible>
  1338.         <dontWrap> <false /> </dontWrap>
  1339.         <dontSearch> <false /> </dontSearch>
  1340.         <sharedText> <false /> </sharedText>
  1341.         <fixedLineHeight> <false /> </fixedLineHeight>
  1342.         <autoTab> <false /> </autoTab>
  1343.         <lockText> <false /> </lockText>
  1344.         <rect>
  1345.             <left>142</left>
  1346.             <top>129</top>
  1347.             <right>462</right>
  1348.             <bottom>147</bottom>
  1349.         </rect>
  1350.         <style>rectangle</style>
  1351.         <autoSelect> <false /> </autoSelect>
  1352.         <showLines> <false /> </showLines>
  1353.         <wideMargins> <false /> </wideMargins>
  1354.         <multipleLines> <false /> </multipleLines>
  1355.         <reservedFamily> 0 </reservedFamily>
  1356.         <titleWidth>0</titleWidth>
  1357.         <icon>0</icon>
  1358.         <textAlign>left</textAlign>
  1359.         <font>Geneva</font>
  1360.         <textSize>10</textSize>
  1361.         <textStyle>plain</textStyle>
  1362.         <textHeight>13</textHeight>
  1363.         <name>tcp-port</name>
  1364.         <script>on mouseWithinballoon "This field contains the TCP/IP port number of the source, for "┬¼& "example 210, this is also the default port number."end mouseWithin</script>
  1365.     </part>
  1366.     <part>
  1367.         <id>21</id>
  1368.         <type>button</type>
  1369.         <visible> <true /> </visible>
  1370.         <reserved5> 0 </reserved5>
  1371.         <reserved4> 0 </reserved4>
  1372.         <reserved3> 0 </reserved3>
  1373.         <reserved2> 0 </reserved2>
  1374.         <reserved1> 0 </reserved1>
  1375.         <enabled> <true /> </enabled>
  1376.         <rect>
  1377.             <left>357</left>
  1378.             <top>34</top>
  1379.             <right>422</right>
  1380.             <bottom>48</bottom>
  1381.         </rect>
  1382.         <style>rectangle</style>
  1383.         <showName> <true /> </showName>
  1384.         <highlight> <false /> </highlight>
  1385.         <autoHighlight> <true /> </autoHighlight>
  1386.         <sharedHighlight> <true /> </sharedHighlight>
  1387.         <family>0</family>
  1388.         <titleWidth>0</titleWidth>
  1389.         <icon>0</icon>
  1390.         <textAlign>center</textAlign>
  1391.         <font>Geneva</font>
  1392.         <textSize>10</textSize>
  1393.         <textStyle>plain</textStyle>
  1394.         <name>Save Source</name>
  1395.         <script>on mouseUp-- this handler saves the source into a file---- the first part checks to see if there is enough-- data for our source-- the minimum being:--  - an ip-name or an ip-address--  - a tcp-port ( defaults to 210 )--  - a database-name---- the second part substitutes the database name for the filename-- if one does not exists-- it also appends the extension ".src" to the file---- the third part opens up the file and writes out the-- source description to a file---- the fourth part adds this source to the source list in the-- card 'query'-- wais folders to store sources, documents and questionsglobal WaisSourcesFolderglobal WaisDocumentsFolderglobal WaisQuestionsFolderif card field "ip-name" is empty or┬¼card field "ip-address" is empty thenanswer "You need to specify either an IP name or a TCP/IP address for a source."exit to hypercardend ifif card field "tcp-port" is empty thenanswer "You need to specify an IP port number for a source."exit mouseUpend ifif card field "database-name" is empty thenanswer "You need to specify a database name for a source."exit mouseUpend ifif card field "num-docs-to-request" is empty thenanswer "You need to specify a maximum number of documents to request for a source."exit mouseUpend if-- default the source nameif card field "source-name" is empty thenput card field "database-name" & ".src" ┬¼into card field "source-name"end if-- ask for the source file nameask "Save source:" with card field "source-name"put it into sourceName-- user did not enter anythingif sourceName is empty thenexit mouseUpend if-- prepend source folderput WaisSourcesFolder & ":" & sourceName into sourceName-- check for trailing .srcset the itemDelimiter to "."if the last item of sourceName Γëá "src" thenput sourceName & ".src" into sourceNameend if-- check to see if the source file already existsif there is a file sourceName thenset the itemDelimiter to ":"answer "Replace existing " & last item of sourceName ┬¼with "OK" or "Cancel"if it is "Cancel" thenexit mouseUpend ifend ifset the itemDelimiter to ":"put the last item of sourceName into card field "source-name"set the cursor to busyopen file sourceNamewrite "(:source" & return to file sourceNamewrite " :version" & space & "3" & return to file sourceNamewrite " :ip-name" & space & quote & card field "ip-name" & quote┬¼& return to file sourceNamewrite " :ip-address" & space & quote & card field "ip-address" & quote┬¼& return to file sourceNamewrite " :tcp-port" & space & quote & card field "tcp-port" & quote┬¼& return to file sourceNamewrite " :maintainer" & space & quote & card field "maintainer" & quote┬¼& return to file sourceNamewrite " :database-name" & space & quote & card field "database-name" & quote┬¼& return to file sourceNameif card field "confidence" is not empty thenwrite " :confidence" & space & card field "confidence" ┬¼& return to file sourceNameend ifwrite " :num-docs-to-request" & space & card field "num-docs-to-request" ┬¼& return to file sourceNamewrite " :cost" & space & "0.00" & return to file sourceNamewrite " :cost-unit" & space & ":free" & return to file sourceNamewrite " :description" & space & quote & card field "description" & quote┬¼& return to file sourceNamewrite ")" & return to file sourceNameclose file sourceNameif sourceName is not empty thenanswer "Add this source to the source list?" with "No","Yes"if it is "Yes" thenput card field "sources" of card "query" into sourceListput addSource(sourceName,sourceList) into card field "sources"┬¼of card "query"end ifend ifend mouseUpon mouseWithinballoon "Click on this button to save the source below to "┬¼& "a file."end mouseWithin</script>
  1396.     </part>
  1397.     <part>
  1398.         <id>18</id>
  1399.         <type>field</type>
  1400.         <visible> <true /> </visible>
  1401.         <dontWrap> <false /> </dontWrap>
  1402.         <dontSearch> <false /> </dontSearch>
  1403.         <sharedText> <false /> </sharedText>
  1404.         <fixedLineHeight> <false /> </fixedLineHeight>
  1405.         <autoTab> <false /> </autoTab>
  1406.         <lockText> <false /> </lockText>
  1407.         <rect>
  1408.             <left>142</left>
  1409.             <top>150</top>
  1410.             <right>462</right>
  1411.             <bottom>168</bottom>
  1412.         </rect>
  1413.         <style>rectangle</style>
  1414.         <autoSelect> <false /> </autoSelect>
  1415.         <showLines> <false /> </showLines>
  1416.         <wideMargins> <false /> </wideMargins>
  1417.         <multipleLines> <false /> </multipleLines>
  1418.         <reservedFamily> 0 </reservedFamily>
  1419.         <titleWidth>0</titleWidth>
  1420.         <icon>0</icon>
  1421.         <textAlign>left</textAlign>
  1422.         <font>Geneva</font>
  1423.         <textSize>10</textSize>
  1424.         <textStyle>plain</textStyle>
  1425.         <textHeight>13</textHeight>
  1426.         <name>maintainer</name>
  1427.         <script>on mouseWithinballoon "This field contains the email address of the maintainer "┬¼& "of that source, for example 'francois@welchlab.welch.jhu.edu'."end mouseWithin</script>
  1428.     </part>
  1429.     <part>
  1430.         <id>19</id>
  1431.         <type>field</type>
  1432.         <visible> <true /> </visible>
  1433.         <dontWrap> <false /> </dontWrap>
  1434.         <dontSearch> <false /> </dontSearch>
  1435.         <sharedText> <false /> </sharedText>
  1436.         <fixedLineHeight> <false /> </fixedLineHeight>
  1437.         <autoTab> <false /> </autoTab>
  1438.         <lockText> <false /> </lockText>
  1439.         <rect>
  1440.             <left>142</left>
  1441.             <top>171</top>
  1442.             <right>462</right>
  1443.             <bottom>189</bottom>
  1444.         </rect>
  1445.         <style>rectangle</style>
  1446.         <autoSelect> <false /> </autoSelect>
  1447.         <showLines> <false /> </showLines>
  1448.         <wideMargins> <false /> </wideMargins>
  1449.         <multipleLines> <false /> </multipleLines>
  1450.         <reservedFamily> 0 </reservedFamily>
  1451.         <titleWidth>0</titleWidth>
  1452.         <icon>0</icon>
  1453.         <textAlign>left</textAlign>
  1454.         <font>Geneva</font>
  1455.         <textSize>10</textSize>
  1456.         <textStyle>plain</textStyle>
  1457.         <textHeight>13</textHeight>
  1458.         <name>database-name</name>
  1459.         <script>on mouseWithinballoon "This field contains the database name "┬¼& "of that source, for example 'omim'."end mouseWithin</script>
  1460.     </part>
  1461.     <part>
  1462.         <id>22</id>
  1463.         <type>button</type>
  1464.         <visible> <true /> </visible>
  1465.         <reserved5> 0 </reserved5>
  1466.         <reserved4> 0 </reserved4>
  1467.         <reserved3> 0 </reserved3>
  1468.         <reserved2> 0 </reserved2>
  1469.         <reserved1> 0 </reserved1>
  1470.         <enabled> <true /> </enabled>
  1471.         <rect>
  1472.             <left>289</left>
  1473.             <top>34</top>
  1474.             <right>355</right>
  1475.             <bottom>48</bottom>
  1476.         </rect>
  1477.         <style>rectangle</style>
  1478.         <showName> <true /> </showName>
  1479.         <highlight> <false /> </highlight>
  1480.         <autoHighlight> <true /> </autoHighlight>
  1481.         <sharedHighlight> <true /> </sharedHighlight>
  1482.         <family>0</family>
  1483.         <titleWidth>0</titleWidth>
  1484.         <icon>0</icon>
  1485.         <textAlign>center</textAlign>
  1486.         <font>Geneva</font>
  1487.         <textSize>10</textSize>
  1488.         <textStyle>plain</textStyle>
  1489.         <name>Open Source</name>
  1490.         <script>on mouseUp-- this handler loads the source into the fields---- first it asks for a file name---- then it cycles through reading the file-- and parsing it---- this is really sluggish and speed needs to be-- improvedglobal siteNameglobal siteIPglobal sitePortglobal maintainerglobal databaseNameglobal databaseMaxDocNumglobal confidenceglobal descriptionput card field "wais-sources" of card "edit_preferences"┬¼into waisSources-- we can open either text or WAIStation format-- source filesput files(waisSources,"TEXT,WSRC") into waisSourceListget showList(waisSourceList,"Select the sources to add:",┬¼false,true,"Add,Cancel",0)-- if the user cancelled, we exitif line 1 of it = "Cancel" thenexit mouseUpend if-- get the returned selection listput line 2 of it into itemNumberput line itemNumber of waisSourceList into sourceNameput waisSources & ":" & sourceName into sourceNameif there is not a file sourceName thenset the itemDelimiter to ":"answer "Could not find the source file for: "& ┬¼the last item of sourceName &"."exit mouseUpend ifif sourceName is not empty thenset the itemDelimiter to ":"put the last item  of sourceName into card field "source-name"put parseSourceFile(sourceName) into waisErrorput siteName into card field "ip-name"put siteIP into card field "ip-address"put sitePort into card field "tcp-port"put maintainer into card field "maintainer"put databaseName into card field "database-name"put databaseMaxDocNum into card field "num-docs-to-request"put confidence into card field "confidence"put description into card field "description"end ifend mouseUpon mouseWithinballoon "Click on this button to load an existing source into "┬¼& "the fields below."end mouseWithin</script>
  1491.     </part>
  1492.     <part>
  1493.         <id>25</id>
  1494.         <type>field</type>
  1495.         <visible> <true /> </visible>
  1496.         <dontWrap> <false /> </dontWrap>
  1497.         <dontSearch> <false /> </dontSearch>
  1498.         <sharedText> <false /> </sharedText>
  1499.         <fixedLineHeight> <false /> </fixedLineHeight>
  1500.         <autoTab> <false /> </autoTab>
  1501.         <lockText> <false /> </lockText>
  1502.         <rect>
  1503.             <left>142</left>
  1504.             <top>192</top>
  1505.             <right>462</right>
  1506.             <bottom>210</bottom>
  1507.         </rect>
  1508.         <style>rectangle</style>
  1509.         <autoSelect> <false /> </autoSelect>
  1510.         <showLines> <false /> </showLines>
  1511.         <wideMargins> <false /> </wideMargins>
  1512.         <multipleLines> <false /> </multipleLines>
  1513.         <reservedFamily> 0 </reservedFamily>
  1514.         <titleWidth>0</titleWidth>
  1515.         <icon>0</icon>
  1516.         <textAlign>left</textAlign>
  1517.         <font>Geneva</font>
  1518.         <textSize>10</textSize>
  1519.         <textStyle>plain</textStyle>
  1520.         <textHeight>13</textHeight>
  1521.         <name>num-docs-to-request</name>
  1522.         <script>on mouseWithinballoon "This field contains the maximum number of documents "┬¼& "to retrieve from that source."end mouseWithin</script>
  1523.     </part>
  1524.     <part>
  1525.         <id>23</id>
  1526.         <type>button</type>
  1527.         <visible> <true /> </visible>
  1528.         <reserved5> 0 </reserved5>
  1529.         <reserved4> 0 </reserved4>
  1530.         <reserved3> 0 </reserved3>
  1531.         <reserved2> 0 </reserved2>
  1532.         <reserved1> 0 </reserved1>
  1533.         <enabled> <true /> </enabled>
  1534.         <rect>
  1535.             <left>220</left>
  1536.             <top>34</top>
  1537.             <right>287</right>
  1538.             <bottom>48</bottom>
  1539.         </rect>
  1540.         <style>rectangle</style>
  1541.         <showName> <true /> </showName>
  1542.         <highlight> <false /> </highlight>
  1543.         <autoHighlight> <true /> </autoHighlight>
  1544.         <sharedHighlight> <true /> </sharedHighlight>
  1545.         <family>0</family>
  1546.         <titleWidth>0</titleWidth>
  1547.         <icon>0</icon>
  1548.         <textAlign>center</textAlign>
  1549.         <font>Geneva</font>
  1550.         <textSize>10</textSize>
  1551.         <textStyle>plain</textStyle>
  1552.         <name>New Source</name>
  1553.         <script>on mouseUp-- clear out the fields ready for new inputput empty into card field "source-name" of card "edit_sources"put empty into card field "ip-name" of card "edit_sources"put empty into card field "ip-address" of card "edit_sources"-- default Z39.50 portput "210" into card field "tcp-port" of card "edit_sources"put empty into card field "maintainer" of card "edit_sources"put empty into card field "database-name" of card "edit_sources"-- default number of docs to requestput "25" into card field "num-docs-to-request" of card "edit_sources"put empty into card field "confidence" of card "edit_sources"put empty into card field "description" of card "edit_sources"end mouseUpon mouseWithinballoon "Click on this button to clear the fields ready for adding "┬¼& "a new source."end mouseWithin</script>
  1554.     </part>
  1555.     <part>
  1556.         <id>26</id>
  1557.         <type>field</type>
  1558.         <visible> <true /> </visible>
  1559.         <dontWrap> <false /> </dontWrap>
  1560.         <dontSearch> <false /> </dontSearch>
  1561.         <sharedText> <false /> </sharedText>
  1562.         <fixedLineHeight> <false /> </fixedLineHeight>
  1563.         <autoTab> <false /> </autoTab>
  1564.         <lockText> <false /> </lockText>
  1565.         <rect>
  1566.             <left>142</left>
  1567.             <top>213</top>
  1568.             <right>462</right>
  1569.             <bottom>231</bottom>
  1570.         </rect>
  1571.         <style>rectangle</style>
  1572.         <autoSelect> <false /> </autoSelect>
  1573.         <showLines> <false /> </showLines>
  1574.         <wideMargins> <false /> </wideMargins>
  1575.         <multipleLines> <false /> </multipleLines>
  1576.         <reservedFamily> 0 </reservedFamily>
  1577.         <titleWidth>0</titleWidth>
  1578.         <icon>0</icon>
  1579.         <textAlign>left</textAlign>
  1580.         <font>Geneva</font>
  1581.         <textSize>10</textSize>
  1582.         <textStyle>plain</textStyle>
  1583.         <textHeight>13</textHeight>
  1584.         <name>confidence</name>
  1585.         <script>on mouseWithinballoon "This field contains the confidence level for this source, "┬¼& "at this time, it is unused."end mouseWithin</script>
  1586.     </part>
  1587.     <part>
  1588.         <id>20</id>
  1589.         <type>field</type>
  1590.         <visible> <true /> </visible>
  1591.         <dontWrap> <false /> </dontWrap>
  1592.         <dontSearch> <false /> </dontSearch>
  1593.         <sharedText> <false /> </sharedText>
  1594.         <fixedLineHeight> <false /> </fixedLineHeight>
  1595.         <autoTab> <false /> </autoTab>
  1596.         <lockText> <false /> </lockText>
  1597.         <rect>
  1598.             <left>142</left>
  1599.             <top>234</top>
  1600.             <right>462</right>
  1601.             <bottom>303</bottom>
  1602.         </rect>
  1603.         <style>scrolling</style>
  1604.         <autoSelect> <false /> </autoSelect>
  1605.         <showLines> <false /> </showLines>
  1606.         <wideMargins> <false /> </wideMargins>
  1607.         <multipleLines> <false /> </multipleLines>
  1608.         <reservedFamily> 0 </reservedFamily>
  1609.         <titleWidth>0</titleWidth>
  1610.         <icon>0</icon>
  1611.         <textAlign>left</textAlign>
  1612.         <font>Geneva</font>
  1613.         <textSize>10</textSize>
  1614.         <textStyle>plain</textStyle>
  1615.         <textHeight>13</textHeight>
  1616.         <name>description</name>
  1617.         <script>on mouseWithinballoon "This field contains a description of this source."end mouseWithin</script>
  1618.     </part>
  1619.     <part>
  1620.         <id>31</id>
  1621.         <type>field</type>
  1622.         <visible> <true /> </visible>
  1623.         <dontWrap> <false /> </dontWrap>
  1624.         <dontSearch> <false /> </dontSearch>
  1625.         <sharedText> <false /> </sharedText>
  1626.         <fixedLineHeight> <false /> </fixedLineHeight>
  1627.         <autoTab> <false /> </autoTab>
  1628.         <lockText> <true /> </lockText>
  1629.         <rect>
  1630.             <left>140</left>
  1631.             <top>1</top>
  1632.             <right>380</right>
  1633.             <bottom>24</bottom>
  1634.         </rect>
  1635.         <style>transparent</style>
  1636.         <autoSelect> <false /> </autoSelect>
  1637.         <showLines> <false /> </showLines>
  1638.         <wideMargins> <false /> </wideMargins>
  1639.         <multipleLines> <false /> </multipleLines>
  1640.         <reservedFamily> 0 </reservedFamily>
  1641.         <titleWidth>0</titleWidth>
  1642.         <icon>0</icon>
  1643.         <textAlign>center</textAlign>
  1644.         <font>Palatino</font>
  1645.         <textSize>24</textSize>
  1646.         <textStyle>extend</textStyle>
  1647.         <textStyle>bold</textStyle>
  1648.         <textHeight>32</textHeight>
  1649.         <name>edit_sources_label</name>
  1650.         <script></script>
  1651.     </part>
  1652.     <part>
  1653.         <id>32</id>
  1654.         <type>field</type>
  1655.         <visible> <true /> </visible>
  1656.         <dontWrap> <false /> </dontWrap>
  1657.         <dontSearch> <false /> </dontSearch>
  1658.         <sharedText> <false /> </sharedText>
  1659.         <fixedLineHeight> <false /> </fixedLineHeight>
  1660.         <autoTab> <false /> </autoTab>
  1661.         <lockText> <true /> </lockText>
  1662.         <rect>
  1663.             <left>60</left>
  1664.             <top>66</top>
  1665.             <right>142</right>
  1666.             <bottom>84</bottom>
  1667.         </rect>
  1668.         <style>transparent</style>
  1669.         <autoSelect> <false /> </autoSelect>
  1670.         <showLines> <false /> </showLines>
  1671.         <wideMargins> <false /> </wideMargins>
  1672.         <multipleLines> <false /> </multipleLines>
  1673.         <reservedFamily> 0 </reservedFamily>
  1674.         <titleWidth>0</titleWidth>
  1675.         <icon>0</icon>
  1676.         <textAlign>left</textAlign>
  1677.         <font>Geneva</font>
  1678.         <textSize>10</textSize>
  1679.         <textStyle>plain</textStyle>
  1680.         <textHeight>13</textHeight>
  1681.         <name>source_name_label</name>
  1682.         <script></script>
  1683.     </part>
  1684.     <part>
  1685.         <id>34</id>
  1686.         <type>field</type>
  1687.         <visible> <true /> </visible>
  1688.         <dontWrap> <false /> </dontWrap>
  1689.         <dontSearch> <false /> </dontSearch>
  1690.         <sharedText> <false /> </sharedText>
  1691.         <fixedLineHeight> <false /> </fixedLineHeight>
  1692.         <autoTab> <false /> </autoTab>
  1693.         <lockText> <true /> </lockText>
  1694.         <rect>
  1695.             <left>60</left>
  1696.             <top>87</top>
  1697.             <right>142</right>
  1698.             <bottom>105</bottom>
  1699.         </rect>
  1700.         <style>transparent</style>
  1701.         <autoSelect> <false /> </autoSelect>
  1702.         <showLines> <false /> </showLines>
  1703.         <wideMargins> <false /> </wideMargins>
  1704.         <multipleLines> <false /> </multipleLines>
  1705.         <reservedFamily> 0 </reservedFamily>
  1706.         <titleWidth>0</titleWidth>
  1707.         <icon>0</icon>
  1708.         <textAlign>left</textAlign>
  1709.         <font>Geneva</font>
  1710.         <textSize>10</textSize>
  1711.         <textStyle>plain</textStyle>
  1712.         <textHeight>13</textHeight>
  1713.         <name>ip_name_label</name>
  1714.         <script></script>
  1715.     </part>
  1716.     <part>
  1717.         <id>35</id>
  1718.         <type>field</type>
  1719.         <visible> <true /> </visible>
  1720.         <dontWrap> <false /> </dontWrap>
  1721.         <dontSearch> <false /> </dontSearch>
  1722.         <sharedText> <false /> </sharedText>
  1723.         <fixedLineHeight> <false /> </fixedLineHeight>
  1724.         <autoTab> <false /> </autoTab>
  1725.         <lockText> <true /> </lockText>
  1726.         <rect>
  1727.             <left>60</left>
  1728.             <top>108</top>
  1729.             <right>142</right>
  1730.             <bottom>126</bottom>
  1731.         </rect>
  1732.         <style>transparent</style>
  1733.         <autoSelect> <false /> </autoSelect>
  1734.         <showLines> <false /> </showLines>
  1735.         <wideMargins> <false /> </wideMargins>
  1736.         <multipleLines> <false /> </multipleLines>
  1737.         <reservedFamily> 0 </reservedFamily>
  1738.         <titleWidth>0</titleWidth>
  1739.         <icon>0</icon>
  1740.         <textAlign>left</textAlign>
  1741.         <font>Geneva</font>
  1742.         <textSize>10</textSize>
  1743.         <textStyle>plain</textStyle>
  1744.         <textHeight>13</textHeight>
  1745.         <name>ip_address_label</name>
  1746.         <script></script>
  1747.     </part>
  1748.     <part>
  1749.         <id>36</id>
  1750.         <type>field</type>
  1751.         <visible> <true /> </visible>
  1752.         <dontWrap> <false /> </dontWrap>
  1753.         <dontSearch> <false /> </dontSearch>
  1754.         <sharedText> <false /> </sharedText>
  1755.         <fixedLineHeight> <false /> </fixedLineHeight>
  1756.         <autoTab> <false /> </autoTab>
  1757.         <lockText> <true /> </lockText>
  1758.         <rect>
  1759.             <left>60</left>
  1760.             <top>129</top>
  1761.             <right>142</right>
  1762.             <bottom>147</bottom>
  1763.         </rect>
  1764.         <style>transparent</style>
  1765.         <autoSelect> <false /> </autoSelect>
  1766.         <showLines> <false /> </showLines>
  1767.         <wideMargins> <false /> </wideMargins>
  1768.         <multipleLines> <false /> </multipleLines>
  1769.         <reservedFamily> 0 </reservedFamily>
  1770.         <titleWidth>0</titleWidth>
  1771.         <icon>0</icon>
  1772.         <textAlign>left</textAlign>
  1773.         <font>Geneva</font>
  1774.         <textSize>10</textSize>
  1775.         <textStyle>plain</textStyle>
  1776.         <textHeight>13</textHeight>
  1777.         <name>tcp_port_label</name>
  1778.         <script></script>
  1779.     </part>
  1780.     <part>
  1781.         <id>37</id>
  1782.         <type>field</type>
  1783.         <visible> <true /> </visible>
  1784.         <dontWrap> <false /> </dontWrap>
  1785.         <dontSearch> <false /> </dontSearch>
  1786.         <sharedText> <false /> </sharedText>
  1787.         <fixedLineHeight> <false /> </fixedLineHeight>
  1788.         <autoTab> <false /> </autoTab>
  1789.         <lockText> <true /> </lockText>
  1790.         <rect>
  1791.             <left>60</left>
  1792.             <top>150</top>
  1793.             <right>142</right>
  1794.             <bottom>168</bottom>
  1795.         </rect>
  1796.         <style>transparent</style>
  1797.         <autoSelect> <false /> </autoSelect>
  1798.         <showLines> <false /> </showLines>
  1799.         <wideMargins> <false /> </wideMargins>
  1800.         <multipleLines> <false /> </multipleLines>
  1801.         <reservedFamily> 0 </reservedFamily>
  1802.         <titleWidth>0</titleWidth>
  1803.         <icon>0</icon>
  1804.         <textAlign>left</textAlign>
  1805.         <font>Geneva</font>
  1806.         <textSize>10</textSize>
  1807.         <textStyle>plain</textStyle>
  1808.         <textHeight>13</textHeight>
  1809.         <name>maintainer_label</name>
  1810.         <script></script>
  1811.     </part>
  1812.     <part>
  1813.         <id>38</id>
  1814.         <type>field</type>
  1815.         <visible> <true /> </visible>
  1816.         <dontWrap> <false /> </dontWrap>
  1817.         <dontSearch> <false /> </dontSearch>
  1818.         <sharedText> <false /> </sharedText>
  1819.         <fixedLineHeight> <false /> </fixedLineHeight>
  1820.         <autoTab> <false /> </autoTab>
  1821.         <lockText> <true /> </lockText>
  1822.         <rect>
  1823.             <left>60</left>
  1824.             <top>171</top>
  1825.             <right>142</right>
  1826.             <bottom>189</bottom>
  1827.         </rect>
  1828.         <style>transparent</style>
  1829.         <autoSelect> <false /> </autoSelect>
  1830.         <showLines> <false /> </showLines>
  1831.         <wideMargins> <false /> </wideMargins>
  1832.         <multipleLines> <false /> </multipleLines>
  1833.         <reservedFamily> 0 </reservedFamily>
  1834.         <titleWidth>0</titleWidth>
  1835.         <icon>0</icon>
  1836.         <textAlign>left</textAlign>
  1837.         <font>Geneva</font>
  1838.         <textSize>10</textSize>
  1839.         <textStyle>plain</textStyle>
  1840.         <textHeight>13</textHeight>
  1841.         <name>database_name_label</name>
  1842.         <script></script>
  1843.     </part>
  1844.     <part>
  1845.         <id>39</id>
  1846.         <type>field</type>
  1847.         <visible> <true /> </visible>
  1848.         <dontWrap> <false /> </dontWrap>
  1849.         <dontSearch> <false /> </dontSearch>
  1850.         <sharedText> <false /> </sharedText>
  1851.         <fixedLineHeight> <false /> </fixedLineHeight>
  1852.         <autoTab> <false /> </autoTab>
  1853.         <lockText> <true /> </lockText>
  1854.         <rect>
  1855.             <left>60</left>
  1856.             <top>192</top>
  1857.             <right>142</right>
  1858.             <bottom>210</bottom>
  1859.         </rect>
  1860.         <style>transparent</style>
  1861.         <autoSelect> <false /> </autoSelect>
  1862.         <showLines> <false /> </showLines>
  1863.         <wideMargins> <false /> </wideMargins>
  1864.         <multipleLines> <false /> </multipleLines>
  1865.         <reservedFamily> 0 </reservedFamily>
  1866.         <titleWidth>0</titleWidth>
  1867.         <icon>0</icon>
  1868.         <textAlign>left</textAlign>
  1869.         <font>Geneva</font>
  1870.         <textSize>10</textSize>
  1871.         <textStyle>plain</textStyle>
  1872.         <textHeight>13</textHeight>
  1873.         <name>doc_number_label</name>
  1874.         <script></script>
  1875.     </part>
  1876.     <part>
  1877.         <id>40</id>
  1878.         <type>field</type>
  1879.         <visible> <true /> </visible>
  1880.         <dontWrap> <false /> </dontWrap>
  1881.         <dontSearch> <false /> </dontSearch>
  1882.         <sharedText> <false /> </sharedText>
  1883.         <fixedLineHeight> <false /> </fixedLineHeight>
  1884.         <autoTab> <false /> </autoTab>
  1885.         <lockText> <true /> </lockText>
  1886.         <rect>
  1887.             <left>60</left>
  1888.             <top>213</top>
  1889.             <right>142</right>
  1890.             <bottom>231</bottom>
  1891.         </rect>
  1892.         <style>transparent</style>
  1893.         <autoSelect> <false /> </autoSelect>
  1894.         <showLines> <false /> </showLines>
  1895.         <wideMargins> <false /> </wideMargins>
  1896.         <multipleLines> <false /> </multipleLines>
  1897.         <reservedFamily> 0 </reservedFamily>
  1898.         <titleWidth>0</titleWidth>
  1899.         <icon>0</icon>
  1900.         <textAlign>left</textAlign>
  1901.         <font>Geneva</font>
  1902.         <textSize>9</textSize>
  1903.         <textStyle>plain</textStyle>
  1904.         <textHeight>12</textHeight>
  1905.         <name>confidence_label</name>
  1906.         <script></script>
  1907.     </part>
  1908.     <part>
  1909.         <id>41</id>
  1910.         <type>field</type>
  1911.         <visible> <true /> </visible>
  1912.         <dontWrap> <false /> </dontWrap>
  1913.         <dontSearch> <false /> </dontSearch>
  1914.         <sharedText> <false /> </sharedText>
  1915.         <fixedLineHeight> <false /> </fixedLineHeight>
  1916.         <autoTab> <false /> </autoTab>
  1917.         <lockText> <true /> </lockText>
  1918.         <rect>
  1919.             <left>60</left>
  1920.             <top>234</top>
  1921.             <right>142</right>
  1922.             <bottom>252</bottom>
  1923.         </rect>
  1924.         <style>transparent</style>
  1925.         <autoSelect> <false /> </autoSelect>
  1926.         <showLines> <false /> </showLines>
  1927.         <wideMargins> <false /> </wideMargins>
  1928.         <multipleLines> <false /> </multipleLines>
  1929.         <reservedFamily> 0 </reservedFamily>
  1930.         <titleWidth>0</titleWidth>
  1931.         <icon>0</icon>
  1932.         <textAlign>left</textAlign>
  1933.         <font>Geneva</font>
  1934.         <textSize>10</textSize>
  1935.         <textStyle>plain</textStyle>
  1936.         <textHeight>13</textHeight>
  1937.         <name>description_label</name>
  1938.         <script></script>
  1939.     </part>
  1940.     <part>
  1941.         <id>51</id>
  1942.         <type>button</type>
  1943.         <visible> <true /> </visible>
  1944.         <reserved5> 0 </reserved5>
  1945.         <reserved4> 0 </reserved4>
  1946.         <reserved3> 0 </reserved3>
  1947.         <reserved2> 0 </reserved2>
  1948.         <reserved1> 0 </reserved1>
  1949.         <enabled> <true /> </enabled>
  1950.         <rect>
  1951.             <left>424</left>
  1952.             <top>34</top>
  1953.             <right>459</right>
  1954.             <bottom>48</bottom>
  1955.         </rect>
  1956.         <style>rectangle</style>
  1957.         <showName> <true /> </showName>
  1958.         <highlight> <false /> </highlight>
  1959.         <autoHighlight> <true /> </autoHighlight>
  1960.         <sharedHighlight> <true /> </sharedHighlight>
  1961.         <family>0</family>
  1962.         <titleWidth>0</titleWidth>
  1963.         <icon>0</icon>
  1964.         <textAlign>center</textAlign>
  1965.         <font>Geneva</font>
  1966.         <textSize>10</textSize>
  1967.         <textStyle>plain</textStyle>
  1968.         <name>OK</name>
  1969.         <script>on mouseUpgo to card "query"end mouseUpon mouseWithinballoon "Click on this button return to the 'Search Sources' "┬¼& "card."end mouseWithin</script>
  1970.     </part>
  1971.     <part>
  1972.         <id>52</id>
  1973.         <type>field</type>
  1974.         <visible> <true /> </visible>
  1975.         <dontWrap> <false /> </dontWrap>
  1976.         <dontSearch> <false /> </dontSearch>
  1977.         <sharedText> <false /> </sharedText>
  1978.         <fixedLineHeight> <false /> </fixedLineHeight>
  1979.         <autoTab> <false /> </autoTab>
  1980.         <lockText> <true /> </lockText>
  1981.         <rect>
  1982.             <left>45</left>
  1983.             <top>32</top>
  1984.             <right>198</right>
  1985.             <bottom>52</bottom>
  1986.         </rect>
  1987.         <style>transparent</style>
  1988.         <autoSelect> <false /> </autoSelect>
  1989.         <showLines> <false /> </showLines>
  1990.         <wideMargins> <false /> </wideMargins>
  1991.         <multipleLines> <false /> </multipleLines>
  1992.         <reservedFamily> 0 </reservedFamily>
  1993.         <titleWidth>0</titleWidth>
  1994.         <icon>0</icon>
  1995.         <textAlign>left</textAlign>
  1996.         <font>Palatino</font>
  1997.         <textSize>14</textSize>
  1998.         <textStyle>outline</textStyle>
  1999.         <textStyle>bold</textStyle>
  2000.         <textHeight>18</textHeight>
  2001.         <name>source_label</name>
  2002.         <script></script>
  2003.     </part>
  2004.     <content>
  2005.         <layer>card</layer>
  2006.         <id>17</id>
  2007.         <text>210</text>
  2008.     </content>
  2009.     <content>
  2010.         <layer>card</layer>
  2011.         <id>31</id>
  2012.         <text>Edit Sources</text>
  2013.     </content>
  2014.     <content>
  2015.         <layer>card</layer>
  2016.         <id>32</id>
  2017.         <text>Source Name:</text>
  2018.     </content>
  2019.     <content>
  2020.         <layer>card</layer>
  2021.         <id>34</id>
  2022.         <text>IP Name:</text>
  2023.     </content>
  2024.     <content>
  2025.         <layer>card</layer>
  2026.         <id>35</id>
  2027.         <text>IP Address:</text>
  2028.     </content>
  2029.     <content>
  2030.         <layer>card</layer>
  2031.         <id>36</id>
  2032.         <text>TCP Port:</text>
  2033.     </content>
  2034.     <content>
  2035.         <layer>card</layer>
  2036.         <id>37</id>
  2037.         <text>Maintainer:</text>
  2038.     </content>
  2039.     <content>
  2040.         <layer>card</layer>
  2041.         <id>38</id>
  2042.         <text>Database Name:</text>
  2043.     </content>
  2044.     <content>
  2045.         <layer>card</layer>
  2046.         <id>39</id>
  2047.         <text>Max Docs:</text>
  2048.     </content>
  2049.     <content>
  2050.         <layer>card</layer>
  2051.         <id>40</id>
  2052.         <text>Confidence:</text>
  2053.     </content>
  2054.     <content>
  2055.         <layer>card</layer>
  2056.         <id>41</id>
  2057.         <text>Description:</text>
  2058.     </content>
  2059.     <content>
  2060.         <layer>card</layer>
  2061.         <id>52</id>
  2062.         <text>Source Description</text>
  2063.     </content>
  2064.     <content>
  2065.         <layer>card</layer>
  2066.         <id>25</id>
  2067.         <text>25</text>
  2068.     </content>
  2069.     <name>edit_sources</name>
  2070.     <script>on initializeCardsend mouseUp to button "New Source" of card "edit_sources"end initializeCard</script>
  2071. </card>
  2072.  
  2073.  
  2074. card_4690.xml
  2075. <?xml version="1.0" encoding="utf-8" ?>
  2076. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2077. <card>
  2078.     <id>4690</id>
  2079.     <filler1>0</filler1>
  2080.     <bitmap>BMAP_5056.pbm</bitmap>
  2081.     <cantDelete> <false /> </cantDelete>
  2082.     <showPict> <true /> </showPict>
  2083.     <dontSearch> <false /> </dontSearch>
  2084.     <owner>2583</owner>
  2085.     <link rel="stylesheet" type="text/css" href="stylesheet_3325.css" />
  2086.     <part>
  2087.         <id>1</id>
  2088.         <type>field</type>
  2089.         <visible> <true /> </visible>
  2090.         <dontWrap> <false /> </dontWrap>
  2091.         <dontSearch> <false /> </dontSearch>
  2092.         <sharedText> <false /> </sharedText>
  2093.         <fixedLineHeight> <false /> </fixedLineHeight>
  2094.         <autoTab> <false /> </autoTab>
  2095.         <lockText> <false /> </lockText>
  2096.         <rect>
  2097.             <left>6</left>
  2098.             <top>51</top>
  2099.             <right>507</right>
  2100.             <bottom>287</bottom>
  2101.         </rect>
  2102.         <style>scrolling</style>
  2103.         <autoSelect> <false /> </autoSelect>
  2104.         <showLines> <false /> </showLines>
  2105.         <wideMargins> <false /> </wideMargins>
  2106.         <multipleLines> <false /> </multipleLines>
  2107.         <reservedFamily> 0 </reservedFamily>
  2108.         <titleWidth>0</titleWidth>
  2109.         <icon>0</icon>
  2110.         <textAlign>left</textAlign>
  2111.         <font>Geneva</font>
  2112.         <textSize>10</textSize>
  2113.         <textStyle>plain</textStyle>
  2114.         <textHeight>13</textHeight>
  2115.         <name>document</name>
  2116.         <script>on keyDownanswer "You may not modify this text"end keyDownon mouseWithinballoon "This field contains the document section. "end mouseWithin</script>
  2117.     </part>
  2118.     <part>
  2119.         <id>6</id>
  2120.         <type>button</type>
  2121.         <visible> <true /> </visible>
  2122.         <reserved5> 0 </reserved5>
  2123.         <reserved4> 0 </reserved4>
  2124.         <reserved3> 0 </reserved3>
  2125.         <reserved2> 0 </reserved2>
  2126.         <reserved1> 0 </reserved1>
  2127.         <enabled> <true /> </enabled>
  2128.         <rect>
  2129.             <left>422</left>
  2130.             <top>33</top>
  2131.             <right>451</right>
  2132.             <bottom>47</bottom>
  2133.         </rect>
  2134.         <style>rectangle</style>
  2135.         <showName> <true /> </showName>
  2136.         <highlight> <false /> </highlight>
  2137.         <autoHighlight> <true /> </autoHighlight>
  2138.         <sharedHighlight> <true /> </sharedHighlight>
  2139.         <family>0</family>
  2140.         <titleWidth>0</titleWidth>
  2141.         <icon>0</icon>
  2142.         <textAlign>center</textAlign>
  2143.         <font>Geneva</font>
  2144.         <textSize>10</textSize>
  2145.         <textStyle>plain</textStyle>
  2146.         <name>OK</name>
  2147.         <script>on mouseUpgo to card "query"end mouseUpon mouseWithinballoon "Click on this button return to the 'Search Sources' "┬¼& "card."end mouseWithin</script>
  2148.     </part>
  2149.     <part>
  2150.         <id>8</id>
  2151.         <type>button</type>
  2152.         <visible> <true /> </visible>
  2153.         <reserved5> 0 </reserved5>
  2154.         <reserved4> 0 </reserved4>
  2155.         <reserved3> 0 </reserved3>
  2156.         <reserved2> 0 </reserved2>
  2157.         <reserved1> 0 </reserved1>
  2158.         <enabled> <true /> </enabled>
  2159.         <rect>
  2160.             <left>382</left>
  2161.             <top>33</top>
  2162.             <right>420</right>
  2163.             <bottom>47</bottom>
  2164.         </rect>
  2165.         <style>rectangle</style>
  2166.         <showName> <true /> </showName>
  2167.         <highlight> <false /> </highlight>
  2168.         <autoHighlight> <true /> </autoHighlight>
  2169.         <sharedHighlight> <true /> </sharedHighlight>
  2170.         <family>0</family>
  2171.         <titleWidth>0</titleWidth>
  2172.         <icon>0</icon>
  2173.         <textAlign>center</textAlign>
  2174.         <font>Geneva</font>
  2175.         <textSize>10</textSize>
  2176.         <textStyle>plain</textStyle>
  2177.         <name>Save</name>
  2178.         <script>on mouseUp-- current document number globalglobal resultDocNumglobal resultDocNum-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadlineif resultDocNum is empty thenanswer "The is no document to save."┬¼with "OK"exit mouseUpend if-- ask for the file name to save the document intoask file "Save Document:" with docHeadlineput it into documentName-- check if user canceled the operationif documentName is empty thenexit to hypercardend if-- download thew documentset cursor to busyput GetDocToFile(resultDocNum, docType, documentName, "????", docType)┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the document."┬¼with "OK"exit mouseUpend ifend mouseUp</script>
  2179.     </part>
  2180.     <part>
  2181.         <id>11</id>
  2182.         <type>button</type>
  2183.         <visible> <true /> </visible>
  2184.         <reserved5> 0 </reserved5>
  2185.         <reserved4> 0 </reserved4>
  2186.         <reserved3> 0 </reserved3>
  2187.         <reserved2> 0 </reserved2>
  2188.         <reserved1> 0 </reserved1>
  2189.         <enabled> <true /> </enabled>
  2190.         <rect>
  2191.             <left>264</left>
  2192.             <top>33</top>
  2193.             <right>330</right>
  2194.             <bottom>47</bottom>
  2195.         </rect>
  2196.         <style>rectangle</style>
  2197.         <showName> <true /> </showName>
  2198.         <highlight> <false /> </highlight>
  2199.         <autoHighlight> <false /> </autoHighlight>
  2200.         <sharedHighlight> <true /> </sharedHighlight>
  2201.         <family>0</family>
  2202.         <titleWidth>0</titleWidth>
  2203.         <icon>0</icon>
  2204.         <textAlign>center</textAlign>
  2205.         <font>Geneva</font>
  2206.         <textSize>10</textSize>
  2207.         <textStyle>plain</textStyle>
  2208.         <name>Add Section</name>
  2209.         <script>on mouseUp-- add the selected chunk of text as RF-- #define CT_document  0-- #define CT_byte      1-- #define CT_line      2-- #define CT_paragraph 3-- document count global ( for current query )global docCount-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docSitePortglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document number globalglobal resultDocNum-- relevance feedback entry numberglobal relEntryNum-- get the selected chunk of textget the selectedChunk-- check to see if it is emptyif it is empty thenanswer "To add a section of text as relevance feedback, you need to select it first."exit to hypercardend if-- is there something thereput the second word of it into startByteput the fourth word of it into endByte-- check that this is not just the cursor in the text-- with no selectionif startByte >= endByte thenanswer "To add a section of text as relevance feedback, you need to select it first."exit to hypercardend if-- make this a CT_byteput 1 into resultChunkType-- ajust the byte counts according to our offsetput startByte + ( card field "start_byte_count" - 1 ) into startByteput endByte + ( card field "start_byte_count" - 1 ) into endByte-- add the chunk as RFput RelFeedbackAdd(resultDocNum, docType, resultChunkType, startByte, ┬¼endByte) into waisErrorif waisError Γëá 0 thenanswer "An error occured while adding the document chunk as relevance feedback."┬¼with "OK"exit to hypercardend if-- prepare the RFEntry for the RF fieldput char 1 to 20 of docHeadline into RFEntryput "   " & relEntryNum & " " & RFEntry into RFEntryput RFEntry & "["&startByte&","&endByte&"]" & return into RFEntryput card field "feedback" of card "query" into dummyput dummy & RFEntry into RFEntryput RFEntry into card field "feedback" of card "query"end mouseUpon mouseWithinballoon "Click on this button to add the hilighted section to the "┬¼& "relevance feedback entries."end mouseWithin</script>
  2210.     </part>
  2211.     <part>
  2212.         <id>12</id>
  2213.         <type>button</type>
  2214.         <visible> <true /> </visible>
  2215.         <reserved5> 0 </reserved5>
  2216.         <reserved4> 0 </reserved4>
  2217.         <reserved3> 0 </reserved3>
  2218.         <reserved2> 0 </reserved2>
  2219.         <reserved1> 0 </reserved1>
  2220.         <enabled> <true /> </enabled>
  2221.         <rect>
  2222.             <left>332</left>
  2223.             <top>33</top>
  2224.             <right>380</right>
  2225.             <bottom>47</bottom>
  2226.         </rect>
  2227.         <style>rectangle</style>
  2228.         <showName> <true /> </showName>
  2229.         <highlight> <false /> </highlight>
  2230.         <autoHighlight> <true /> </autoHighlight>
  2231.         <sharedHighlight> <true /> </sharedHighlight>
  2232.         <family>0</family>
  2233.         <titleWidth>0</titleWidth>
  2234.         <icon>0</icon>
  2235.         <textAlign>center</textAlign>
  2236.         <font>Geneva</font>
  2237.         <textSize>10</textSize>
  2238.         <textStyle>plain</textStyle>
  2239.         <name>Add Doc</name>
  2240.         <script>on mouseUp-- add the document as RF-- #define CT_document  0-- #define CT_byte      1-- #define CT_line      2-- #define CT_paragraph 3-- document count global ( for current query )global docCount-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docSitePortglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document number globalglobal resultDocNum-- RF entry numberglobal relEntryNumif resultDocNum is empty thenanswer "There is no document to add as relevance feedback."┬¼with "OK"exit mouseUpend if-- set the chunk to CT_documentput 0 into resultChunkTypeput 0 into startByteput 0 into endByte-- add the entry to the RF arrayput RelFeedbackAdd(resultDocNum, docType, resultChunkType, startByte, ┬¼endByte) into waisErrorif waisError Γëá 0 thenanswer "An error occured while adding the document as relevance feedback."┬¼with "OK"exit mouseUpend if-- prepare the RFEntry for the RF fieldput char 1 to 20 of docHeadline into RFEntryput relEntryNum & " " & RFEntry into RFEntryput RFEntry & "[doc]" & return into RFEntryput card field "feedback" of card "query" into dummyput dummy & RFEntry into RFEntryput RFEntry into card field "feedback" of card "query"end mouseUpon mouseWithinballoon "Click on this button to add this document to the "┬¼& "relevance feedback entries."end mouseWithin</script>
  2241.     </part>
  2242.     <part>
  2243.         <id>18</id>
  2244.         <type>field</type>
  2245.         <visible> <true /> </visible>
  2246.         <dontWrap> <false /> </dontWrap>
  2247.         <dontSearch> <false /> </dontSearch>
  2248.         <sharedText> <false /> </sharedText>
  2249.         <fixedLineHeight> <false /> </fixedLineHeight>
  2250.         <autoTab> <false /> </autoTab>
  2251.         <lockText> <true /> </lockText>
  2252.         <rect>
  2253.             <left>7</left>
  2254.             <top>32</top>
  2255.             <right>96</right>
  2256.             <bottom>51</bottom>
  2257.         </rect>
  2258.         <style>transparent</style>
  2259.         <autoSelect> <false /> </autoSelect>
  2260.         <showLines> <false /> </showLines>
  2261.         <wideMargins> <false /> </wideMargins>
  2262.         <multipleLines> <false /> </multipleLines>
  2263.         <reservedFamily> 0 </reservedFamily>
  2264.         <titleWidth>0</titleWidth>
  2265.         <icon>0</icon>
  2266.         <textAlign>left</textAlign>
  2267.         <font>Palatino</font>
  2268.         <textSize>14</textSize>
  2269.         <textStyle>outline</textStyle>
  2270.         <textStyle>bold</textStyle>
  2271.         <textHeight>18</textHeight>
  2272.         <name>document_label</name>
  2273.         <script></script>
  2274.     </part>
  2275.     <part>
  2276.         <id>19</id>
  2277.         <type>button</type>
  2278.         <visible> <true /> </visible>
  2279.         <reserved5> 0 </reserved5>
  2280.         <reserved4> 0 </reserved4>
  2281.         <reserved3> 0 </reserved3>
  2282.         <reserved2> 0 </reserved2>
  2283.         <reserved1> 0 </reserved1>
  2284.         <enabled> <true /> </enabled>
  2285.         <rect>
  2286.             <left>475</left>
  2287.             <top>33</top>
  2288.             <right>498</right>
  2289.             <bottom>47</bottom>
  2290.         </rect>
  2291.         <style>rectangle</style>
  2292.         <showName> <false /> </showName>
  2293.         <highlight> <false /> </highlight>
  2294.         <autoHighlight> <true /> </autoHighlight>
  2295.         <sharedHighlight> <true /> </sharedHighlight>
  2296.         <family>0</family>
  2297.         <titleWidth>0</titleWidth>
  2298.         <icon>16692</icon>
  2299.         <textAlign>center</textAlign>
  2300.         <font>Chicago</font>
  2301.         <textSize>12</textSize>
  2302.         <textStyle>plain</textStyle>
  2303.         <name>previous_section</name>
  2304.         <script>on mouseUp-- display previous 100 lines-- #define CT_document  0-- #define CT_byte      1-- #define CT_line      2-- #define CT_paragraph 3-- some globalsglobal docLengthglobal resultDocNumglobal docHdlglobal docHdlSizeglobal docType-- set up our document chunk parametersput 1 into resultChunkType-- check so see if we are not already displaying the-- first bytesif card field "start_byte_count" - 1 = 0 thenanswer "There are no more characters to display" with "OK"exit to hypercardend ifput card field "start_byte_count" - 30001 into resultDocStartput resultDocStart + 29999 into resultDocEnd-- check to see if we dont go beyond the end of the documentif docLength < resultDocEnd thenput docLength into resultDocEndend if-- download the document chunkset cursor to busyput GetDoc(resultDocNum, docType, resultChunkType, resultDocStart, ┬¼resultDocEnd) ┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the document chunk."┬¼with "OK"exit to hypercardend if-- put it into our document fieldput docHdl into card field "document"-- put some character counts onto our document cardput resultDocStart + 1 into card field "start_byte_count"put resultDocEnd + 1 into card field "end_byte_count"end mouseUpon mouseWithinballoon "Click on this button to go to the previous section of this "┬¼& "document."end mouseWithin</script>
  2305.     </part>
  2306.     <part>
  2307.         <id>20</id>
  2308.         <type>button</type>
  2309.         <visible> <true /> </visible>
  2310.         <reserved5> 0 </reserved5>
  2311.         <reserved4> 0 </reserved4>
  2312.         <reserved3> 0 </reserved3>
  2313.         <reserved2> 0 </reserved2>
  2314.         <reserved1> 0 </reserved1>
  2315.         <enabled> <true /> </enabled>
  2316.         <rect>
  2317.             <left>453</left>
  2318.             <top>33</top>
  2319.             <right>474</right>
  2320.             <bottom>47</bottom>
  2321.         </rect>
  2322.         <style>rectangle</style>
  2323.         <showName> <false /> </showName>
  2324.         <highlight> <false /> </highlight>
  2325.         <autoHighlight> <true /> </autoHighlight>
  2326.         <sharedHighlight> <true /> </sharedHighlight>
  2327.         <family>0</family>
  2328.         <titleWidth>0</titleWidth>
  2329.         <icon>3584</icon>
  2330.         <textAlign>center</textAlign>
  2331.         <font>Chicago</font>
  2332.         <textSize>12</textSize>
  2333.         <textStyle>plain</textStyle>
  2334.         <name>next_section</name>
  2335.         <script>on mouseUp-- display next 30000 bytes-- #define CT_document  0-- #define CT_byte      1-- #define CT_line      2-- #define CT_paragraph 3-- some globalsglobal resultDocNumglobal docHdlglobal docHdlSizeglobal docTypeglobal docLength-- set up our document chunk parametersput 1 into resultChunkType-- check so see if we are not already displaying the-- last bytesif card field "end_byte_count" - 1 = docLength thenanswer "There are no more characters to display" with "OK"exit to hypercardend ifput card field "start_byte_count" + 29999 into resultDocStartput resultDocStart + 29999 into resultDocEnd-- check to see if we dont go beyond the end of the documentif docLength < resultDocEnd thenput docLength into resultDocEndend if-- download the document chunkset cursor to busyput GetDoc(resultDocNum, docType, resultChunkType, resultDocStart, ┬¼resultDocEnd) into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the document chunk."┬¼with "OK"exit to hypercardend if-- put it into our document fieldput docHdl into card field "document"-- put some byte counts onto our document cardput resultDocStart + 1 into card field "start_byte_count"put resultDocEnd + 1 into card field "end_byte_count"end mouseUpon mouseWithinballoon "Click on this button to go to the next section of this "┬¼& "document."end mouseWithin</script>
  2336.     </part>
  2337.     <part>
  2338.         <id>21</id>
  2339.         <type>field</type>
  2340.         <visible> <true /> </visible>
  2341.         <dontWrap> <false /> </dontWrap>
  2342.         <dontSearch> <false /> </dontSearch>
  2343.         <sharedText> <false /> </sharedText>
  2344.         <fixedLineHeight> <false /> </fixedLineHeight>
  2345.         <autoTab> <false /> </autoTab>
  2346.         <lockText> <true /> </lockText>
  2347.         <rect>
  2348.             <left>49</left>
  2349.             <top>290</top>
  2350.             <right>158</right>
  2351.             <bottom>310</bottom>
  2352.         </rect>
  2353.         <style>transparent</style>
  2354.         <autoSelect> <false /> </autoSelect>
  2355.         <showLines> <false /> </showLines>
  2356.         <wideMargins> <false /> </wideMargins>
  2357.         <multipleLines> <false /> </multipleLines>
  2358.         <reservedFamily> 0 </reservedFamily>
  2359.         <titleWidth>0</titleWidth>
  2360.         <icon>0</icon>
  2361.         <textAlign>left</textAlign>
  2362.         <font>Geneva</font>
  2363.         <textSize>10</textSize>
  2364.         <textStyle>plain</textStyle>
  2365.         <textHeight>13</textHeight>
  2366.         <name>showing_label</name>
  2367.         <script></script>
  2368.     </part>
  2369.     <part>
  2370.         <id>23</id>
  2371.         <type>field</type>
  2372.         <visible> <true /> </visible>
  2373.         <dontWrap> <false /> </dontWrap>
  2374.         <dontSearch> <false /> </dontSearch>
  2375.         <sharedText> <false /> </sharedText>
  2376.         <fixedLineHeight> <false /> </fixedLineHeight>
  2377.         <autoTab> <false /> </autoTab>
  2378.         <lockText> <true /> </lockText>
  2379.         <rect>
  2380.             <left>298</left>
  2381.             <top>290</top>
  2382.             <right>323</right>
  2383.             <bottom>310</bottom>
  2384.         </rect>
  2385.         <style>transparent</style>
  2386.         <autoSelect> <false /> </autoSelect>
  2387.         <showLines> <false /> </showLines>
  2388.         <wideMargins> <false /> </wideMargins>
  2389.         <multipleLines> <false /> </multipleLines>
  2390.         <reservedFamily> 0 </reservedFamily>
  2391.         <titleWidth>0</titleWidth>
  2392.         <icon>0</icon>
  2393.         <textAlign>left</textAlign>
  2394.         <font>Geneva</font>
  2395.         <textSize>10</textSize>
  2396.         <textStyle>plain</textStyle>
  2397.         <textHeight>13</textHeight>
  2398.         <name>of_label</name>
  2399.         <script></script>
  2400.     </part>
  2401.     <part>
  2402.         <id>24</id>
  2403.         <type>field</type>
  2404.         <visible> <true /> </visible>
  2405.         <dontWrap> <false /> </dontWrap>
  2406.         <dontSearch> <false /> </dontSearch>
  2407.         <sharedText> <false /> </sharedText>
  2408.         <fixedLineHeight> <false /> </fixedLineHeight>
  2409.         <autoTab> <false /> </autoTab>
  2410.         <lockText> <true /> </lockText>
  2411.         <rect>
  2412.             <left>158</left>
  2413.             <top>290</top>
  2414.             <right>224</right>
  2415.             <bottom>305</bottom>
  2416.         </rect>
  2417.         <style>rectangle</style>
  2418.         <autoSelect> <false /> </autoSelect>
  2419.         <showLines> <false /> </showLines>
  2420.         <wideMargins> <false /> </wideMargins>
  2421.         <multipleLines> <false /> </multipleLines>
  2422.         <reservedFamily> 0 </reservedFamily>
  2423.         <titleWidth>0</titleWidth>
  2424.         <icon>0</icon>
  2425.         <textAlign>left</textAlign>
  2426.         <font>Geneva</font>
  2427.         <textSize>10</textSize>
  2428.         <textStyle>plain</textStyle>
  2429.         <textHeight>13</textHeight>
  2430.         <name>start_byte_count</name>
  2431.         <script>on mouseWithinballoon "This field shows the start character of the document section "┬¼& "displayed above."end mouseWithin</script>
  2432.     </part>
  2433.     <part>
  2434.         <id>25</id>
  2435.         <type>field</type>
  2436.         <visible> <true /> </visible>
  2437.         <dontWrap> <false /> </dontWrap>
  2438.         <dontSearch> <false /> </dontSearch>
  2439.         <sharedText> <false /> </sharedText>
  2440.         <fixedLineHeight> <false /> </fixedLineHeight>
  2441.         <autoTab> <false /> </autoTab>
  2442.         <lockText> <true /> </lockText>
  2443.         <rect>
  2444.             <left>323</left>
  2445.             <top>290</top>
  2446.             <right>398</right>
  2447.             <bottom>305</bottom>
  2448.         </rect>
  2449.         <style>rectangle</style>
  2450.         <autoSelect> <false /> </autoSelect>
  2451.         <showLines> <false /> </showLines>
  2452.         <wideMargins> <false /> </wideMargins>
  2453.         <multipleLines> <false /> </multipleLines>
  2454.         <reservedFamily> 0 </reservedFamily>
  2455.         <titleWidth>0</titleWidth>
  2456.         <icon>0</icon>
  2457.         <textAlign>left</textAlign>
  2458.         <font>Geneva</font>
  2459.         <textSize>10</textSize>
  2460.         <textStyle>plain</textStyle>
  2461.         <textHeight>13</textHeight>
  2462.         <name>total_byte_count</name>
  2463.         <script>on mouseWithinballoon "This field shows total number of characters in"┬¼& "the document displayed above."end mouseWithin</script>
  2464.     </part>
  2465.     <part>
  2466.         <id>27</id>
  2467.         <type>field</type>
  2468.         <visible> <true /> </visible>
  2469.         <dontWrap> <false /> </dontWrap>
  2470.         <dontSearch> <false /> </dontSearch>
  2471.         <sharedText> <false /> </sharedText>
  2472.         <fixedLineHeight> <false /> </fixedLineHeight>
  2473.         <autoTab> <false /> </autoTab>
  2474.         <lockText> <true /> </lockText>
  2475.         <rect>
  2476.             <left>398</left>
  2477.             <top>290</top>
  2478.             <right>462</right>
  2479.             <bottom>310</bottom>
  2480.         </rect>
  2481.         <style>transparent</style>
  2482.         <autoSelect> <false /> </autoSelect>
  2483.         <showLines> <false /> </showLines>
  2484.         <wideMargins> <false /> </wideMargins>
  2485.         <multipleLines> <false /> </multipleLines>
  2486.         <reservedFamily> 0 </reservedFamily>
  2487.         <titleWidth>0</titleWidth>
  2488.         <icon>0</icon>
  2489.         <textAlign>left</textAlign>
  2490.         <font>Geneva</font>
  2491.         <textSize>10</textSize>
  2492.         <textStyle>plain</textStyle>
  2493.         <textHeight>13</textHeight>
  2494.         <name>lines_label</name>
  2495.         <script></script>
  2496.     </part>
  2497.     <part>
  2498.         <id>29</id>
  2499.         <type>field</type>
  2500.         <visible> <true /> </visible>
  2501.         <dontWrap> <false /> </dontWrap>
  2502.         <dontSearch> <false /> </dontSearch>
  2503.         <sharedText> <false /> </sharedText>
  2504.         <fixedLineHeight> <false /> </fixedLineHeight>
  2505.         <autoTab> <false /> </autoTab>
  2506.         <lockText> <true /> </lockText>
  2507.         <rect>
  2508.             <left>237</left>
  2509.             <top>290</top>
  2510.             <right>298</right>
  2511.             <bottom>305</bottom>
  2512.         </rect>
  2513.         <style>rectangle</style>
  2514.         <autoSelect> <false /> </autoSelect>
  2515.         <showLines> <false /> </showLines>
  2516.         <wideMargins> <false /> </wideMargins>
  2517.         <multipleLines> <false /> </multipleLines>
  2518.         <reservedFamily> 0 </reservedFamily>
  2519.         <titleWidth>0</titleWidth>
  2520.         <icon>0</icon>
  2521.         <textAlign>left</textAlign>
  2522.         <font>Geneva</font>
  2523.         <textSize>10</textSize>
  2524.         <textStyle>plain</textStyle>
  2525.         <textHeight>13</textHeight>
  2526.         <name>end_byte_count</name>
  2527.         <script>on mouseWithinballoon "This field shows the end character of the document section "┬¼& "displayed above."end mouseWithin</script>
  2528.     </part>
  2529.     <part>
  2530.         <id>30</id>
  2531.         <type>field</type>
  2532.         <visible> <true /> </visible>
  2533.         <dontWrap> <false /> </dontWrap>
  2534.         <dontSearch> <false /> </dontSearch>
  2535.         <sharedText> <false /> </sharedText>
  2536.         <fixedLineHeight> <false /> </fixedLineHeight>
  2537.         <autoTab> <false /> </autoTab>
  2538.         <lockText> <true /> </lockText>
  2539.         <rect>
  2540.             <left>224</left>
  2541.             <top>290</top>
  2542.             <right>237</right>
  2543.             <bottom>310</bottom>
  2544.         </rect>
  2545.         <style>transparent</style>
  2546.         <autoSelect> <false /> </autoSelect>
  2547.         <showLines> <false /> </showLines>
  2548.         <wideMargins> <false /> </wideMargins>
  2549.         <multipleLines> <false /> </multipleLines>
  2550.         <reservedFamily> 0 </reservedFamily>
  2551.         <titleWidth>0</titleWidth>
  2552.         <icon>0</icon>
  2553.         <textAlign>left</textAlign>
  2554.         <font>Geneva</font>
  2555.         <textSize>10</textSize>
  2556.         <textStyle>plain</textStyle>
  2557.         <textHeight>13</textHeight>
  2558.         <name>dash_label</name>
  2559.         <script></script>
  2560.     </part>
  2561.     <part>
  2562.         <id>31</id>
  2563.         <type>field</type>
  2564.         <visible> <true /> </visible>
  2565.         <dontWrap> <false /> </dontWrap>
  2566.         <dontSearch> <false /> </dontSearch>
  2567.         <sharedText> <false /> </sharedText>
  2568.         <fixedLineHeight> <false /> </fixedLineHeight>
  2569.         <autoTab> <false /> </autoTab>
  2570.         <lockText> <true /> </lockText>
  2571.         <rect>
  2572.             <left>138</left>
  2573.             <top>0</top>
  2574.             <right>378</right>
  2575.             <bottom>23</bottom>
  2576.         </rect>
  2577.         <style>transparent</style>
  2578.         <autoSelect> <false /> </autoSelect>
  2579.         <showLines> <false /> </showLines>
  2580.         <wideMargins> <false /> </wideMargins>
  2581.         <multipleLines> <false /> </multipleLines>
  2582.         <reservedFamily> 0 </reservedFamily>
  2583.         <titleWidth>0</titleWidth>
  2584.         <icon>0</icon>
  2585.         <textAlign>center</textAlign>
  2586.         <font>Palatino</font>
  2587.         <textSize>24</textSize>
  2588.         <textStyle>extend</textStyle>
  2589.         <textStyle>bold</textStyle>
  2590.         <textHeight>32</textHeight>
  2591.         <name>view_document_label</name>
  2592.         <script></script>
  2593.     </part>
  2594.     <content>
  2595.         <layer>card</layer>
  2596.         <id>18</id>
  2597.         <text>Document</text>
  2598.     </content>
  2599.     <content>
  2600.         <layer>card</layer>
  2601.         <id>21</id>
  2602.         <text>Showing characters:</text>
  2603.     </content>
  2604.     <content>
  2605.         <layer>card</layer>
  2606.         <id>23</id>
  2607.         <text>of:</text>
  2608.     </content>
  2609.     <content>
  2610.         <layer>card</layer>
  2611.         <id>27</id>
  2612.         <text>characters</text>
  2613.     </content>
  2614.     <content>
  2615.         <layer>card</layer>
  2616.         <id>30</id>
  2617.         <text>-</text>
  2618.     </content>
  2619.     <content>
  2620.         <layer>card</layer>
  2621.         <id>31</id>
  2622.         <text>View Document</text>
  2623.     </content>
  2624.     <name>document</name>
  2625.     <script>on initializeCardput empty into card field "document" of card "document"put empty into card field "start_byte_count" of card "document"put empty into card field "end_byte_count" of card "document"put empty into card field "total_byte_count" of card "document"end initializeCard</script>
  2626. </card>
  2627.  
  2628.  
  2629. card_3875.xml
  2630. <?xml version="1.0" encoding="utf-8" ?>
  2631. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2632. <card>
  2633.     <id>3875</id>
  2634.     <filler1>0</filler1>
  2635.     <bitmap>BMAP_4099.pbm</bitmap>
  2636.     <cantDelete> <false /> </cantDelete>
  2637.     <showPict> <true /> </showPict>
  2638.     <dontSearch> <false /> </dontSearch>
  2639.     <owner>2583</owner>
  2640.     <link rel="stylesheet" type="text/css" href="stylesheet_3325.css" />
  2641.     <part>
  2642.         <id>1</id>
  2643.         <type>field</type>
  2644.         <visible> <true /> </visible>
  2645.         <dontWrap> <true /> </dontWrap>
  2646.         <dontSearch> <false /> </dontSearch>
  2647.         <sharedText> <false /> </sharedText>
  2648.         <fixedLineHeight> <true /> </fixedLineHeight>
  2649.         <autoTab> <false /> </autoTab>
  2650.         <lockText> <true /> </lockText>
  2651.         <rect>
  2652.             <left>6</left>
  2653.             <top>110</top>
  2654.             <right>258</right>
  2655.             <bottom>168</bottom>
  2656.         </rect>
  2657.         <style>scrolling</style>
  2658.         <autoSelect> <false /> </autoSelect>
  2659.         <showLines> <false /> </showLines>
  2660.         <wideMargins> <false /> </wideMargins>
  2661.         <multipleLines> <false /> </multipleLines>
  2662.         <reservedFamily> 0 </reservedFamily>
  2663.         <titleWidth>0</titleWidth>
  2664.         <icon>0</icon>
  2665.         <textAlign>left</textAlign>
  2666.         <font>Geneva</font>
  2667.         <textSize>10</textSize>
  2668.         <textStyle>plain</textStyle>
  2669.         <textHeight>13</textHeight>
  2670.         <name>sources</name>
  2671.         <script>on mouseDown-- select/unselect a sourceput value(the clickLine) into dummyif dummy is empty thenset cursor to handexit mouseDownend ifput word 2 of the clickLine into g -- the line number clickedwait until the mouse is upselect emptyif the mouseLoc is not within the rect of methen exit mouseDown-- select/unselect the sourceif character 1 to 2 of line g of card field "sources" = ">>" thenput "   " into character 1 to 2 of line g of card field "sources"elseput ">>" into character 1 to 3 of line g of card field "sources"end ifend mouseDownon mouseWithinballoon "This field contains the wais sources, click on a source "┬¼&" to select it or deselected it. " & return & "Selected sources "┬¼& "have the symbol '>>' next to their name."end mouseWithin</script>
  2672.     </part>
  2673.     <part>
  2674.         <id>2</id>
  2675.         <type>field</type>
  2676.         <visible> <true /> </visible>
  2677.         <dontWrap> <false /> </dontWrap>
  2678.         <dontSearch> <false /> </dontSearch>
  2679.         <sharedText> <false /> </sharedText>
  2680.         <fixedLineHeight> <false /> </fixedLineHeight>
  2681.         <autoTab> <false /> </autoTab>
  2682.         <lockText> <false /> </lockText>
  2683.         <rect>
  2684.             <left>6</left>
  2685.             <top>47</top>
  2686.             <right>507</right>
  2687.             <bottom>79</bottom>
  2688.         </rect>
  2689.         <style>scrolling</style>
  2690.         <autoSelect> <false /> </autoSelect>
  2691.         <showLines> <false /> </showLines>
  2692.         <wideMargins> <false /> </wideMargins>
  2693.         <multipleLines> <false /> </multipleLines>
  2694.         <reservedFamily> 0 </reservedFamily>
  2695.         <titleWidth>0</titleWidth>
  2696.         <icon>0</icon>
  2697.         <textAlign>left</textAlign>
  2698.         <font>Geneva</font>
  2699.         <textSize>10</textSize>
  2700.         <textStyle>plain</textStyle>
  2701.         <textHeight>13</textHeight>
  2702.         <name>query</name>
  2703.         <script>on returnInFieldsend mouseUp to button "Run Search"end returnInFieldon mouseWithinballoon "Enter your query in this field."end mouseWithin</script>
  2704.     </part>
  2705.     <part>
  2706.         <id>3</id>
  2707.         <type>field</type>
  2708.         <visible> <true /> </visible>
  2709.         <dontWrap> <true /> </dontWrap>
  2710.         <dontSearch> <false /> </dontSearch>
  2711.         <sharedText> <false /> </sharedText>
  2712.         <fixedLineHeight> <true /> </fixedLineHeight>
  2713.         <autoTab> <false /> </autoTab>
  2714.         <lockText> <true /> </lockText>
  2715.         <rect>
  2716.             <left>6</left>
  2717.             <top>195</top>
  2718.             <right>507</right>
  2719.             <bottom>307</bottom>
  2720.         </rect>
  2721.         <style>scrolling</style>
  2722.         <autoSelect> <false /> </autoSelect>
  2723.         <showLines> <false /> </showLines>
  2724.         <wideMargins> <false /> </wideMargins>
  2725.         <multipleLines> <false /> </multipleLines>
  2726.         <reservedFamily> 0 </reservedFamily>
  2727.         <titleWidth>0</titleWidth>
  2728.         <icon>0</icon>
  2729.         <textAlign>left</textAlign>
  2730.         <font>Geneva</font>
  2731.         <textSize>10</textSize>
  2732.         <textStyle>plain</textStyle>
  2733.         <textHeight>13</textHeight>
  2734.         <name>results</name>
  2735.         <script>on mouseUp-- answer "You need to select an action such as 'View' or 'Save' "&┬¼--"before applying it to a document headline." with "OK"if the optionKey is down thensend mouseUp to card button "Save"elsesend mouseUp to card button "View"end ifpass mouseUpend mouseUpon mouseWithinballoon "This field contains the document headlines returned from a "┬¼&" search. " & return & "To view or save a document, click the  "┬¼& "'view' or 'save' button, then click on the entry, alternatively "┬¼& "you may click on the document to view it, or 'option'-click to "┬¼& "save it."end mouseWithin</script>
  2736.     </part>
  2737.     <part>
  2738.         <id>4</id>
  2739.         <type>field</type>
  2740.         <visible> <true /> </visible>
  2741.         <dontWrap> <false /> </dontWrap>
  2742.         <dontSearch> <false /> </dontSearch>
  2743.         <sharedText> <false /> </sharedText>
  2744.         <fixedLineHeight> <false /> </fixedLineHeight>
  2745.         <autoTab> <false /> </autoTab>
  2746.         <lockText> <true /> </lockText>
  2747.         <rect>
  2748.             <left>262</left>
  2749.             <top>110</top>
  2750.             <right>507</right>
  2751.             <bottom>168</bottom>
  2752.         </rect>
  2753.         <style>scrolling</style>
  2754.         <autoSelect> <false /> </autoSelect>
  2755.         <showLines> <false /> </showLines>
  2756.         <wideMargins> <false /> </wideMargins>
  2757.         <multipleLines> <false /> </multipleLines>
  2758.         <reservedFamily> 0 </reservedFamily>
  2759.         <titleWidth>0</titleWidth>
  2760.         <icon>0</icon>
  2761.         <textAlign>left</textAlign>
  2762.         <font>Geneva</font>
  2763.         <textSize>10</textSize>
  2764.         <textStyle>plain</textStyle>
  2765.         <textHeight>13</textHeight>
  2766.         <name>feedback</name>
  2767.         <script>on mouseUpAnswer "You need to select an action before applying to a relevance feedback entry" with "OK"end mouseUpon mouseWithinballoon "This field contains the relevance feedback entries."end mouseWithin</script>
  2768.     </part>
  2769.     <part>
  2770.         <id>6</id>
  2771.         <type>button</type>
  2772.         <visible> <true /> </visible>
  2773.         <reserved5> 0 </reserved5>
  2774.         <reserved4> 0 </reserved4>
  2775.         <reserved3> 0 </reserved3>
  2776.         <reserved2> 0 </reserved2>
  2777.         <reserved1> 0 </reserved1>
  2778.         <enabled> <true /> </enabled>
  2779.         <rect>
  2780.             <left>438</left>
  2781.             <top>29</top>
  2782.             <right>499</right>
  2783.             <bottom>43</bottom>
  2784.         </rect>
  2785.         <style>rectangle</style>
  2786.         <showName> <true /> </showName>
  2787.         <highlight> <false /> </highlight>
  2788.         <autoHighlight> <true /> </autoHighlight>
  2789.         <sharedHighlight> <true /> </sharedHighlight>
  2790.         <family>0</family>
  2791.         <titleWidth>0</titleWidth>
  2792.         <icon>0</icon>
  2793.         <textAlign>center</textAlign>
  2794.         <font>Geneva</font>
  2795.         <textSize>10</textSize>
  2796.         <textStyle>plain</textStyle>
  2797.         <name>Run Search</name>
  2798.         <script>---------------------------------------------------------on mouseUp-- run the query-- first check to see if there are any sources selected-- then request opening the selected sources-- then submit the query-- then retrieve the results-- wais sources folderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docSitePortglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- document headline rangeglobal docHeadlineRange-- document count global ( for current query )global docCount-- current document number globalglobal resultDocNum-- open sourcesglobal openSources-- first close all the open sources that are not longer selectedcloseOpenSources-- then check to see if there are any open sourcesif sourceCount() = 0 thenput empty into openSourcesanswer "There are no selected sources against which to run the query, you need to select at least one source by clicking on it."exit mouseUpend if-- open the sources that have been newly selectedopenSources-- do a second check to make sure that we opened all the sourcesif openSources is empty thenanswer "There are no open sources against which to run the query."exit mouseUpend if-- fire off our queryput card field "query" into queryTextput SubmitQuery(queryText) into waisError-- clear out the results fieldput empty into card field "results"put empty into results-- check to see if our search could be completedif waisError Γëá 0 thenanswer "The search could not be correctly completed " with "OK"exit mouseUpend if-- get the number of documents returnedput GetDocCount() into waisErrorif waisError Γëá 0 thenanswer "Could not read the document count" with "OK"exit mouseUpend ifif docCount = 0 thenanswer "No headlines where returned" with "OK"exit mouseUpend if-- range retrieval ( 1 - true, 0 - false )-- if range is 1, we get the headlines is ranges-- otherwise we get them one at a timeput 1 into rangeif range = 0 then-- cycle through all the documents and retrieve the document-- information headline, retain the score and the headlinerepeat with i = 0 to docCount -1set cursor to busyput ReadQueryResult(i) into waisErrorif waisError Γëá 0 thenanswer "Could not read a headline, should I continue?" with "OK" or "Cancel"if it is "Cancel" thenexit mouseUpend ifend ifput results & docScore&"  "&docHeadline & return into resultsend repeatelse-- get the headline range - can get up to 50 headline in one goset cursor to busyput ReadQueryResultRange(0,docCount -1) into waisErrorif waisError Γëá 0 thenanswer "Could not read the headlines." with "OK" or "Cancel"if it is "Cancel" thenexit mouseUpend ifend ifput docHeadlineRange into resultsend if-- put the results in our results fieldput results into card field "results"-- get the number of documents returnedput GetDocCount() into waisErrorend mouseUp---------------------------------------------------------on closeOpenSources-- this function closes the currently opened sources that-- are no longer selected-- source globals (used for reading source files)global siteNameglobal siteIPglobal sitePortglobal maintainerglobal databaseNameglobal databaseMaxDocNumglobal confidenceglobal description-- open sourcesglobal openSources-- wais sources folderglobal WaisSourcesFolderrepeat with i = 1 to the number of lines of card field "sources"-- get the name of an unselected sourceget line i of card field "sources"if character 1 to 3 of it = "   " thenput character 4 to ( the length of it ) of it into sourceName-- if it is then we close itif sourceName is in openSources thenput WaisSourcesFolder&":"&sourceName&".src" into sourceName-- parse the source fileput parseSourceFile(sourceName) into waisError-- check to see if we need to pass through a firewallif the hilite of button "Firewall" of card "edit_preferences"┬¼is true thenput databaseName&"@"&siteName&":"&sitePort into databaseNameif card field "ip_name" of card "edit_preferences" is not empty thenput card field "ip_name" of card "edit_preferences" into siteNameput card field "tcp_port" of card "edit_preferences" into sitePortelseput empty into siteNameput card field "ip_address" of card "edit_preferences" into siteAddressput card field "tcp_port" of card "edit_preferences" into sitePortend ifend if-- close the sourceput CloseWaisSource(databaseName , siteName, sitePort) ┬¼into waisErrorend ifend ifend repeat-- close all sources that have been removed from the listrepeat with i = 1 to the number of lines of openSourcesset cursor to busyput line i of openSources into sourceName-- if we cannot find it in the list of sources, we close itif sourceName is not in card field "sources" thenput WaisSourcesFolder&":"&sourceName&".src" into sourceNameput parseSourceFile(sourceName) into waisErrorput CloseWaisSource(databaseName , siteName, sitePort) ┬¼into waisErrorend ifend repeat-- change openSources to include only the names of the-- sources that are currently openput empty into tOpenSourcesrepeat with i = 1 to the number of lines of openSourcesset cursor to busyput line i of openSources into sourceName-- only include the name of sources which are still openif ">>"&sourceName is in card field "sources" thenput tOpenSources & sourceName & return into tOpenSourcesend ifend repeatput tOpenSources into openSourcesend closeOpenSources---------------------------------------------------------function sourceCount-- counts the number of open sourcesput empty into sourceCountrepeat with i = 1 to the number of lines of card field "sources"set cursor to busyget line i of card field "sources"if character 1 to 2 of it = ">>" thenput sourceCount + 1 into sourceCountend ifend repeatreturn sourceCountend sourceCount---------------------------------------------------------on openSources-- cycle through all the sources and open the selected-- sources-- source globals (used for reading source files)global siteNameglobal siteIPglobal sitePortglobal maintainerglobal databaseNameglobal databaseMaxDocNumglobal confidenceglobal description-- open sourcesglobal openSources-- wais sources folderglobal WaisSourcesFolderrepeat with i = 1 to the number of lines of card field "sources"set cursor to busyget line i of card field "sources"if character 1 to 2 of it = ">>" thenput character 3 to ( the length of it ) of it into sourceName-- check to see if it is currently open-- and flag it if it is already openif sourceName is in openSources thenput 1 into alreadyOpenelseput 0 into alreadyOpenend if-- the source is not open so we need to open itif alreadyOpen = 0 thenput WaisSourcesFolder&":"&sourceName&".src" into tSourceName-- check to see if the source file exists-- give the user the option of bailing outif there is a file tSourceName then-- parse the source fileput parseSourceFile(tSourceName) into waisError-- check to see if we need to pass through a firewallif the hilite of button "Firewall" of card "edit_preferences" is true thenif siteName is not empty thenput databaseName&"@"&siteName&":"&sitePort into databaseNameelseput databaseName&"@"&siteIP&":"&sitePort into databaseNameend ifif card field "ip_name" of card "edit_preferences" is not empty thenput card field "ip_name" of card "edit_preferences" into siteNameput card field "tcp_port" of card "edit_preferences" into sitePortelseput card field "ip_address" of card "edit_preferences" into siteAddressput card field "tcp_port" of card "edit_preferences" into sitePortend ifend if-- open the sourceput OpenWaisSource(databaseName ,databaseMaxDocNum, siteName,┬¼siteIP,sitePort) into waisError-- if the source could not be opened then give the-- user the chance to bail out otherwise we update the-- openSources globalif waisError Γëá 0 thenanswer "The source " & databaseName & " could not be opened, shall I proceed with with the query?"┬¼with "OK" or "Cancel"if it is "Cancel" thenexit openSourcesend ifelseput openSources & sourceName & return into openSourcesend ifelseanswer "The source file for "&sourceName&" could not be found, it was not in the sources folder, shall I proceed with the query?" ┬¼with "OK" or "Cancel"if it is "Cancel" thenexit openSourcesend ifend ifend ifend ifend repeatend openSources---------------------------------------------------------on mouseWithinballoon "Click on this button to search the selected sources."end mouseWithin---------------------------------------------------------</script>
  2799.     </part>
  2800.     <part>
  2801.         <id>10</id>
  2802.         <type>button</type>
  2803.         <visible> <true /> </visible>
  2804.         <reserved5> 0 </reserved5>
  2805.         <reserved4> 0 </reserved4>
  2806.         <reserved3> 0 </reserved3>
  2807.         <reserved2> 0 </reserved2>
  2808.         <reserved1> 0 </reserved1>
  2809.         <enabled> <true /> </enabled>
  2810.         <rect>
  2811.             <left>141</left>
  2812.             <top>92</top>
  2813.             <right>191</right>
  2814.             <bottom>106</bottom>
  2815.         </rect>
  2816.         <style>rectangle</style>
  2817.         <showName> <true /> </showName>
  2818.         <highlight> <false /> </highlight>
  2819.         <autoHighlight> <true /> </autoHighlight>
  2820.         <sharedHighlight> <true /> </sharedHighlight>
  2821.         <family>0</family>
  2822.         <titleWidth>0</titleWidth>
  2823.         <icon>0</icon>
  2824.         <textAlign>center</textAlign>
  2825.         <font>Geneva</font>
  2826.         <textSize>10</textSize>
  2827.         <textStyle>plain</textStyle>
  2828.         <name>Select All</name>
  2829.         <script>on mouseUp-- mark all the sources as selectedput card field "sources" into newSourcesrepeat with i = 1 to the number of lines of newSourcesset cursor to busyget line i of card field "sources"if char 1 to 3 of it = "   " thenput ">>" into char 1 to 3 of line i of newSourcesend ifend repeatput newSources into card field "sources"end mouseUpon mouseWithinballoon "Click on this button to select all the sources in the "┬¼& "sources list."end mouseWithin</script>
  2830.     </part>
  2831.     <part>
  2832.         <id>11</id>
  2833.         <type>button</type>
  2834.         <visible> <true /> </visible>
  2835.         <reserved5> 0 </reserved5>
  2836.         <reserved4> 0 </reserved4>
  2837.         <reserved3> 0 </reserved3>
  2838.         <reserved2> 0 </reserved2>
  2839.         <reserved1> 0 </reserved1>
  2840.         <enabled> <true /> </enabled>
  2841.         <rect>
  2842.             <left>193</left>
  2843.             <top>92</top>
  2844.             <right>252</right>
  2845.             <bottom>106</bottom>
  2846.         </rect>
  2847.         <style>rectangle</style>
  2848.         <showName> <true /> </showName>
  2849.         <highlight> <false /> </highlight>
  2850.         <autoHighlight> <true /> </autoHighlight>
  2851.         <sharedHighlight> <true /> </sharedHighlight>
  2852.         <family>0</family>
  2853.         <titleWidth>0</titleWidth>
  2854.         <icon>0</icon>
  2855.         <textAlign>center</textAlign>
  2856.         <font>Geneva</font>
  2857.         <textSize>10</textSize>
  2858.         <textStyle>plain</textStyle>
  2859.         <name>Unselect all</name>
  2860.         <script>on mouseUp-- unselect all the sourcesput card field "sources" into newSourcesrepeat with i = 1 to the number of lines of newSourcesset cursor to busyget line i of card field "sources"if character 1 to 2 of it = ">>" thenput "   " into character 1 to 2 of line i of newSourcesend ifend repeatput newSources into card field "sources"end mouseUpon mouseWithinballoon "Click on this button to deselect all the sources in the "┬¼& "sources list."end mouseWithin</script>
  2861.     </part>
  2862.     <part>
  2863.         <id>13</id>
  2864.         <type>button</type>
  2865.         <visible> <true /> </visible>
  2866.         <reserved5> 0 </reserved5>
  2867.         <reserved4> 0 </reserved4>
  2868.         <reserved3> 0 </reserved3>
  2869.         <reserved2> 0 </reserved2>
  2870.         <reserved1> 0 </reserved1>
  2871.         <enabled> <true /> </enabled>
  2872.         <rect>
  2873.             <left>99</left>
  2874.             <top>92</top>
  2875.             <right>139</right>
  2876.             <bottom>106</bottom>
  2877.         </rect>
  2878.         <style>rectangle</style>
  2879.         <showName> <true /> </showName>
  2880.         <highlight> <false /> </highlight>
  2881.         <autoHighlight> <false /> </autoHighlight>
  2882.         <sharedHighlight> <true /> </sharedHighlight>
  2883.         <family>0</family>
  2884.         <titleWidth>0</titleWidth>
  2885.         <icon>0</icon>
  2886.         <textAlign>center</textAlign>
  2887.         <font>Geneva</font>
  2888.         <textSize>10</textSize>
  2889.         <textStyle>plain</textStyle>
  2890.         <name>Remove</name>
  2891.         <script>on mouseUp-- this removes the source pointed toset hilite of me to trueif cd fld "sources" is empty thenset the hilite of me to falseexit mouseUpend ifdisallowInterruptionrepeat until the mouseClickif the mouseLoc is not within the rect of cd field "sources" thenset cursor to handelseset cursor to plusend ifend repeatallowInterruptionif the clickLoc is not within rect of cd field "sources" thenset the hilite of me to falseexit mouseUpend ifput the clickLine into lineClickedput value(lineClicked) into sourceNameif sourceName = empty thenset the hilite of me to falseexit mouseUpend ifif character 1 to 2 of sourceName = ">>" thenput character 3 to ( the length of sourceName ) of sourceName into sourceNameelseput character 4 to ( the length of sourceName ) of sourceName into sourceNameend if-- confirm deletion of the selected itemif the optionKey is not down thenanswer "Are you sure that you want to remove the source '"&sourceName&"' from the list?" with "Cancel" or "OK" -- Γêåif it Γëá "OK" thenselect emptyset the hilite of me to falseexit mouseUpend ifend ifdelete lineClicked -- delete itset hilite of me to falseend mouseUpon mouseWithinballoon "Click on this button to remove a wais source from the "┬¼& "sources list." & return & "To remove an entry, click on this "┬¼& "button, then click on the entry in the sources list."end mouseWithin</script>
  2892.     </part>
  2893.     <part>
  2894.         <id>20</id>
  2895.         <type>button</type>
  2896.         <visible> <true /> </visible>
  2897.         <reserved5> 0 </reserved5>
  2898.         <reserved4> 0 </reserved4>
  2899.         <reserved3> 0 </reserved3>
  2900.         <reserved2> 0 </reserved2>
  2901.         <reserved1> 0 </reserved1>
  2902.         <enabled> <true /> </enabled>
  2903.         <rect>
  2904.             <left>453</left>
  2905.             <top>92</top>
  2906.             <right>499</right>
  2907.             <bottom>106</bottom>
  2908.         </rect>
  2909.         <style>rectangle</style>
  2910.         <showName> <true /> </showName>
  2911.         <highlight> <false /> </highlight>
  2912.         <autoHighlight> <false /> </autoHighlight>
  2913.         <sharedHighlight> <true /> </sharedHighlight>
  2914.         <family>0</family>
  2915.         <titleWidth>0</titleWidth>
  2916.         <icon>0</icon>
  2917.         <textAlign>center</textAlign>
  2918.         <font>Geneva</font>
  2919.         <textSize>10</textSize>
  2920.         <textStyle>plain</textStyle>
  2921.         <name>Remove</name>
  2922.         <script>on mouseUp-- this removes and RF entryset hilite of me to trueif cd fld "feedback" is empty thenset the hilite of me to falseexit mouseUpend ifdisallowInterruptionrepeat until the mouseClickif the mouseLoc is not within the rect of cd field "feedback" thenset cursor to handelseset cursor to plusend ifend repeatallowInterruptionif the clickLoc is not within rect of cd field "feedback" thenset the hilite of me to falseexit mouseUpend ifput the clickLine into lineClickedput value(lineClicked) into dummyif dummy = empty thenset the hilite of me to falseexit mouseUpend if-- confirm deletion of the selected itemif the optionKey is not down thenanswer "Are you sure that you want to remove the relevance feedback entry from the list?" with "Cancel" or "OK" -- Γêåif it Γëá "OK" thenselect emptyset the hilite of me to falseexit mouseUpend ifend ifput the first word of dummy into relEntryNumput RelFeedbackDel(relEntryNum) into waisErrordelete lineClicked -- delete it-- check to see if the card field 'feedback' is empty-- if it is clear out the RF array just to be sureif card field "feedback" is empty thenput RelFeedbackClear() into waisErrorend ifset hilite of me to falseend mouseUpon mouseWithinballoon "Click on this button to remove an entry from the relevance "┬¼& "feedback list." & return & "To remove an entry, click on this "┬¼& "button, then click on the entry in the relevance feedback list."end mouseWithin</script>
  2923.     </part>
  2924.     <part>
  2925.         <id>22</id>
  2926.         <type>field</type>
  2927.         <visible> <true /> </visible>
  2928.         <dontWrap> <false /> </dontWrap>
  2929.         <dontSearch> <false /> </dontSearch>
  2930.         <sharedText> <false /> </sharedText>
  2931.         <fixedLineHeight> <false /> </fixedLineHeight>
  2932.         <autoTab> <false /> </autoTab>
  2933.         <lockText> <true /> </lockText>
  2934.         <rect>
  2935.             <left>8</left>
  2936.             <top>90</top>
  2937.             <right>70</right>
  2938.             <bottom>106</bottom>
  2939.         </rect>
  2940.         <style>transparent</style>
  2941.         <autoSelect> <false /> </autoSelect>
  2942.         <showLines> <false /> </showLines>
  2943.         <wideMargins> <false /> </wideMargins>
  2944.         <multipleLines> <false /> </multipleLines>
  2945.         <reservedFamily> 0 </reservedFamily>
  2946.         <titleWidth>0</titleWidth>
  2947.         <icon>0</icon>
  2948.         <textAlign>left</textAlign>
  2949.         <font>Palatino</font>
  2950.         <textSize>12</textSize>
  2951.         <textStyle>outline</textStyle>
  2952.         <textStyle>bold</textStyle>
  2953.         <textHeight>16</textHeight>
  2954.         <name>source_label</name>
  2955.         <script></script>
  2956.     </part>
  2957.     <part>
  2958.         <id>23</id>
  2959.         <type>field</type>
  2960.         <visible> <true /> </visible>
  2961.         <dontWrap> <false /> </dontWrap>
  2962.         <dontSearch> <false /> </dontSearch>
  2963.         <sharedText> <false /> </sharedText>
  2964.         <fixedLineHeight> <false /> </fixedLineHeight>
  2965.         <autoTab> <false /> </autoTab>
  2966.         <lockText> <false /> </lockText>
  2967.         <rect>
  2968.             <left>6</left>
  2969.             <top>28</top>
  2970.             <right>59</right>
  2971.             <bottom>45</bottom>
  2972.         </rect>
  2973.         <style>transparent</style>
  2974.         <autoSelect> <false /> </autoSelect>
  2975.         <showLines> <false /> </showLines>
  2976.         <wideMargins> <false /> </wideMargins>
  2977.         <multipleLines> <false /> </multipleLines>
  2978.         <reservedFamily> 0 </reservedFamily>
  2979.         <titleWidth>0</titleWidth>
  2980.         <icon>0</icon>
  2981.         <textAlign>left</textAlign>
  2982.         <font>Palatino</font>
  2983.         <textSize>12</textSize>
  2984.         <textStyle>outline</textStyle>
  2985.         <textStyle>bold</textStyle>
  2986.         <textHeight>16</textHeight>
  2987.         <name>query_label</name>
  2988.         <script></script>
  2989.     </part>
  2990.     <part>
  2991.         <id>24</id>
  2992.         <type>field</type>
  2993.         <visible> <true /> </visible>
  2994.         <dontWrap> <false /> </dontWrap>
  2995.         <dontSearch> <false /> </dontSearch>
  2996.         <sharedText> <false /> </sharedText>
  2997.         <fixedLineHeight> <false /> </fixedLineHeight>
  2998.         <autoTab> <false /> </autoTab>
  2999.         <lockText> <true /> </lockText>
  3000.         <rect>
  3001.             <left>264</left>
  3002.             <top>91</top>
  3003.             <right>402</right>
  3004.             <bottom>108</bottom>
  3005.         </rect>
  3006.         <style>transparent</style>
  3007.         <autoSelect> <false /> </autoSelect>
  3008.         <showLines> <false /> </showLines>
  3009.         <wideMargins> <false /> </wideMargins>
  3010.         <multipleLines> <false /> </multipleLines>
  3011.         <reservedFamily> 0 </reservedFamily>
  3012.         <titleWidth>0</titleWidth>
  3013.         <icon>0</icon>
  3014.         <textAlign>left</textAlign>
  3015.         <font>Palatino</font>
  3016.         <textSize>12</textSize>
  3017.         <textStyle>outline</textStyle>
  3018.         <textStyle>bold</textStyle>
  3019.         <textHeight>16</textHeight>
  3020.         <name>relevance_feedback_label</name>
  3021.         <script></script>
  3022.     </part>
  3023.     <part>
  3024.         <id>25</id>
  3025.         <type>field</type>
  3026.         <visible> <true /> </visible>
  3027.         <dontWrap> <false /> </dontWrap>
  3028.         <dontSearch> <false /> </dontSearch>
  3029.         <sharedText> <false /> </sharedText>
  3030.         <fixedLineHeight> <false /> </fixedLineHeight>
  3031.         <autoTab> <false /> </autoTab>
  3032.         <lockText> <true /> </lockText>
  3033.         <rect>
  3034.             <left>6</left>
  3035.             <top>176</top>
  3036.             <right>64</right>
  3037.             <bottom>193</bottom>
  3038.         </rect>
  3039.         <style>transparent</style>
  3040.         <autoSelect> <false /> </autoSelect>
  3041.         <showLines> <false /> </showLines>
  3042.         <wideMargins> <false /> </wideMargins>
  3043.         <multipleLines> <false /> </multipleLines>
  3044.         <reservedFamily> 0 </reservedFamily>
  3045.         <titleWidth>0</titleWidth>
  3046.         <icon>0</icon>
  3047.         <textAlign>left</textAlign>
  3048.         <font>Palatino</font>
  3049.         <textSize>12</textSize>
  3050.         <textStyle>outline</textStyle>
  3051.         <textStyle>bold</textStyle>
  3052.         <textHeight>16</textHeight>
  3053.         <name>results_label</name>
  3054.         <script></script>
  3055.     </part>
  3056.     <part>
  3057.         <id>26</id>
  3058.         <type>field</type>
  3059.         <visible> <true /> </visible>
  3060.         <dontWrap> <false /> </dontWrap>
  3061.         <dontSearch> <false /> </dontSearch>
  3062.         <sharedText> <false /> </sharedText>
  3063.         <fixedLineHeight> <false /> </fixedLineHeight>
  3064.         <autoTab> <false /> </autoTab>
  3065.         <lockText> <true /> </lockText>
  3066.         <rect>
  3067.             <left>138</left>
  3068.             <top>0</top>
  3069.             <right>378</right>
  3070.             <bottom>23</bottom>
  3071.         </rect>
  3072.         <style>transparent</style>
  3073.         <autoSelect> <false /> </autoSelect>
  3074.         <showLines> <false /> </showLines>
  3075.         <wideMargins> <false /> </wideMargins>
  3076.         <multipleLines> <false /> </multipleLines>
  3077.         <reservedFamily> 0 </reservedFamily>
  3078.         <titleWidth>0</titleWidth>
  3079.         <icon>0</icon>
  3080.         <textAlign>center</textAlign>
  3081.         <font>Palatino</font>
  3082.         <textSize>24</textSize>
  3083.         <textStyle>extend</textStyle>
  3084.         <textStyle>bold</textStyle>
  3085.         <textHeight>32</textHeight>
  3086.         <name>search_label</name>
  3087.         <script></script>
  3088.     </part>
  3089.     <part>
  3090.         <id>33</id>
  3091.         <type>button</type>
  3092.         <visible> <true /> </visible>
  3093.         <reserved5> 0 </reserved5>
  3094.         <reserved4> 0 </reserved4>
  3095.         <reserved3> 0 </reserved3>
  3096.         <reserved2> 0 </reserved2>
  3097.         <reserved1> 0 </reserved1>
  3098.         <enabled> <true /> </enabled>
  3099.         <rect>
  3100.             <left>73</left>
  3101.             <top>92</top>
  3102.             <right>97</right>
  3103.             <bottom>106</bottom>
  3104.         </rect>
  3105.         <style>rectangle</style>
  3106.         <showName> <true /> </showName>
  3107.         <highlight> <false /> </highlight>
  3108.         <autoHighlight> <true /> </autoHighlight>
  3109.         <sharedHighlight> <true /> </sharedHighlight>
  3110.         <family>0</family>
  3111.         <titleWidth>0</titleWidth>
  3112.         <icon>0</icon>
  3113.         <textAlign>center</textAlign>
  3114.         <font>Geneva</font>
  3115.         <textSize>10</textSize>
  3116.         <textStyle>plain</textStyle>
  3117.         <name>Add</name>
  3118.         <script>on mouseUp-- add a new source name to the list-- get the source file name-- check to see if this source is not already in the listput card field "wais-sources" of card "edit_preferences"┬¼into waisSources-- we can open either text or WAIStation format-- source filesput files(waisSources,"TEXT,WSRC") into waisSourceListget showList(waisSourceList,"Select the sources to add:",┬¼true,true,"Add,Cancel",0)-- if the user cancelled, we exitif line 1 of it = "Cancel" thenexit mouseUpend if-- get the returned selection listput line 2 of it into itemList-- extract the selected sourcesput 1 into irepeat foreverset the itemDelimiter to ","put item i of itemList into itemNumberput line itemNumber of waisSourceList into sourceNameif sourceName is not empty thenput card field "sources" into sourceListput addSource(sourceName,sourceList) into card field "sources"elseexit repeatend ifput (i + 1) into iend repeatend mouseUpon mouseWithinballoon "Click on this button to add wais sources to the sources list."end mouseWithin</script>
  3119.     </part>
  3120.     <part>
  3121.         <id>36</id>
  3122.         <type>button</type>
  3123.         <visible> <true /> </visible>
  3124.         <reserved5> 0 </reserved5>
  3125.         <reserved4> 0 </reserved4>
  3126.         <reserved3> 0 </reserved3>
  3127.         <reserved2> 0 </reserved2>
  3128.         <reserved1> 0 </reserved1>
  3129.         <enabled> <true /> </enabled>
  3130.         <rect>
  3131.             <left>350</left>
  3132.             <top>177</top>
  3133.             <right>386</right>
  3134.             <bottom>191</bottom>
  3135.         </rect>
  3136.         <style>rectangle</style>
  3137.         <showName> <true /> </showName>
  3138.         <highlight> <false /> </highlight>
  3139.         <autoHighlight> <false /> </autoHighlight>
  3140.         <sharedHighlight> <true /> </sharedHighlight>
  3141.         <family>0</family>
  3142.         <titleWidth>0</titleWidth>
  3143.         <icon>0</icon>
  3144.         <textAlign>center</textAlign>
  3145.         <font>Geneva</font>
  3146.         <textSize>10</textSize>
  3147.         <textStyle>plain</textStyle>
  3148.         <name>View</name>
  3149.         <script>---------------------------------------------------------on mouseUp-- select a result for viewing-- #define CT_document  0-- #define CT_byte      1-- #define CT_line      2-- #define CT_paragraph 3-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docSitePortglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- document countglobal docCountset hilite of me to trueif cd fld "results" is empty thenset the hilite of me to falseexit mouseUpend if-- only look for a second click if we are clicking on the-- buttonif the clickLoc is within rect of me thendisallowInterruptionrepeat until the mouseClickif the mouseLoc is not within the rect of cd field "results" thenset cursor to handelseset cursor to plusend ifend repeatallowInterruptionif the clickLoc is not within rect of cd field "results" thenset the hilite of me to falseexit mouseUpend ifend ifget the clickLineput it into myClickLineselect itput ( word 2 of myClickLine ) - 1 into resultDocNumset hilite of me to false-- no document headline in this rowif resultDocNum >= docCount thenanswer "Not a valid document"exit mouseUpend if-- get document headline informationput ReadQueryResult(resultDocNum) into waisErrorif waisError Γëá 0 thenanswer "An error occured while reading this document headline."┬¼with "OK"exit mouseUpend if-- if there is more than one document type put up the list pickerput the number of lines of docType into docTypeNumif docTypeNum > 1 thenget showList(docType,"Choose the document type to view:",┬¼false,false,"Select,Cancel",1)--get showList(docType,"Choose the document type to view:",┬¼--false,false,"Select,Cancel^,Custom",1)-- if the user cancelled, we exitif line 1 of it = "Cancel" thenexit mouseUpend if-- if the user wants another type, put up a box,-- else extract the selected document typeif line 1 of it = "Custom" thenput line 1 of docType into docTypeask "Enter the document type you wish to view:" with docType-- if the user cancelled, we exit, else we get the-- document typeif the result is "Cancel" thenexit mouseUpelseput it into docTypeend ifelse-- extract the selected document typeput line 2 of it into docTypeNumput line docTypeNum of docType into docTypeend ifend if-- download the document-- first see if we can find the document type in our application summaryput card field "application_summary" of card "edit_applications" ┬¼into applicationSummaryput empty into applicationNameput empty into fileTypeput 0 into macbinaryset the itemDelimiter to tabrepeat with i = 1 to the number of lines of applicationSummaryget line i of applicationSummaryif the first item of it = docType thenput the second item of it into applicationNameput the third item of it into fileTypeput the fourth item of it into macbinaryexit repeatend ifend repeat-- check to see if we got a file type, default to '????'if fileType is empty thenput "????" into fileTypeend if-- check to see if the application is still there?if there is not a file applicationName and ┬¼applicationName is not empty thenset the itemDelimiter to ":"answer "Cannot find " & the last item of applicationNameput empty into applicationNameend if-- document type not listed in the application summary,-- see if we can handle it using one of our internal handlers,-- otherwise just ask the user if they want to save itif applicationName is empty thenif docType = "TEXT" or docType = "WCAT" thenput displayTEXT() into waisErrorexit mouseUpelse if docType = "WSRC" thenput displayWSRC() into waisErrorexit mouseUpelse if docType = "PICT" thenput displayPICT() into waisErrorexit mouseUpelse if docType = "MBIN" thenput displayMBIN() into waisErrorexit mouseUpelse if docType = "JFIF" or docType = "JPEG" or docType = "JFIF-TBNL" thenput displayJFIF() into waisErrorexit mouseUpelse if docType = "TIFF" thenput displayTIFF() into waisErrorexit mouseUpelse if docType = "GIF" thenput displayGIF() into waisErrorexit mouseUpelseanswer "The "&docType&" document type cannot be viewed, "&┬¼"do you wish to save it?" with "Cancel" or "OK"-- did the user cancel savingif it = "Cancel" thenexit mouseUpend ifend ifend if-- ask for the file name to save the document intoput niceFileName(docHeadline) into documentNameask file "Save Document ("&docType&"):" with documentNameput it into documentName-- check if user canceled the operationif documentName is empty thenexit mouseUpend if-- download the documentset cursor to busyput GetDocToFile(resultDocNum, docType, documentName, "????" , fileType)┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the document."┬¼with "OK"exit mouseUpend if-- Unbinify it if neededif macbinary = 1 then-- rename the file to a temporary fileput documentName & ".t" into documentNameBinput HCRenameFile(documentName,documentNameBin) into waisErrorput HCMacUnBin(documentNameBin, documentName, "????", fileType)┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while convert the document from MacBinary format."┬¼with "OK"return waisErrorend if-- delete the mac binary fileput HCDelFile(documentNameBin) into waisErrorend if-- display the document with the selected applicationif applicationName is not empty thenopen documentName with applicationNameend ifend mouseUp---------------------------------------------------------function displayTEXT-- download the first 30000 bytes (if possible) of the document and-- go to the document card-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docSitePortglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- set up our document chunk parametersput 1 into resultChunkTypeput 0 into resultDocStartput resultDocStart + 30000 into resultDocEnd-- check to see if we dont go beyond the end of the document,-- and that there are any lines, sometimes the server does-- not fill in this fieldif docLength < resultDocEnd and docLength > 0 thenput docLength into resultDocEndend if-- download the document chunkset cursor to busyput GetDoc(resultDocNum , docType, resultChunkType, resultDocStart, ┬¼resultDocEnd) into waisError--put GetDocByID(docDatabaseName, docSiteName, docSiteIP, docSitePort, ┬¼--docID, docType, resultChunkType, resultDocStart, ┬¼--resultDocEnd) into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the document."┬¼with "OK"return waisErrorend if-- put it into our document fieldput docHdl into card field "document" of card "document"-- put some byte counts onto our document cardput resultDocStart+1 into card field "start_byte_count" of card "document"put resultDocEnd+1 into card field "end_byte_count" of card "document"put docLength+1 into card field "total_byte_count" of card "document"-- reajust our document fieldset the scroll of card field "document" of card "document" to 0-- and go to our document cardgo to card "document"end displayTEXT---------------------------------------------------------function displayWSRC-- download the source, save it in the sources folder and open it-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docSitePortglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- source file globalsglobal siteNameglobal siteIPglobal sitePortglobal maintainerglobal databaseNameglobal databaseMaxDocNumglobal confidenceglobal description-- create the temporary file name for the pictureput WaisSourcesFolder & ":" &"temp.src" into documentName-- delete it if it existsif there is a file documentName thenput HCDelFile(documentName) into waisErrorend if-- download the documentset cursor to busyput GetDocToFile(resultDocNum, docType, documentName, "????", "TEXT")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the source."┬¼with "OK"return waisErrorend if-- parse the source file and display it on the "edit_sources" cardput parseSourceFile(documentName) into waisErrorput siteName into card field "ip-name" of card "edit_sources"put siteIP into card field "ip-address" of card "edit_sources"put sitePort into card field "tcp-port" of card "edit_sources"put maintainer into card field "maintainer" of card "edit_sources"put databaseName into card field "database-name" of card "edit_sources"put databaseMaxDocNum into card field "num-docs-to-request" of card "edit_sources"put confidence into card field "confidence" of card "edit_sources"put description into card field "description" of card "edit_sources"put docHeadline into card field "source-name"  of card "edit_sources"-- delete it if it existsif there is a file documentName thenput HCDelFile(documentName) into waisErrorend if-- finally go to the card "edit_sources"go to card "edit_sources"end displayWSRC---------------------------------------------------------function displayPICT-- download the picture display it-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docSitePortglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- current document number globalglobal resultDocNum-- PICT datatype - download it, save it and display it-- ask for the file name to save the document intoput niceFileName(docHeadline) into documentNameask file "Save Document:" with documentNameput it into documentName-- check if user canceled the operationif documentName is empty thenreturn waisErrorend if-- append a .bin to the end of the file nameput documentName & ".bin" into documentNameBin-- download the document to a fileset cursor to busyput GetDocToFile(resultDocNum, docType, documentNameBin, "????", "MBIN")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the picture."┬¼with "OK"return waisErrorend if-- Unbinify itput HCMacUnBin(documentNameBin, documentName, "????", "PICT")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while decoding the picture."┬¼with "OK"return waisErrorend if-- delete the mac binary fileput HCDelFile(documentNameBin) into waisError-- display it as a picturepicture documentName,File,zoom,false,0set the itemDelimiter to ":"put the last item of documentName into documentNameset the globalloc of window documentName to deepestset visible of window documentName to trueend displayPICT---------------------------------------------------------function displayMBIN-- prompt the user for a file name and download the mac binary to that-- file-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docSitePortglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- ask for the file name to save the document intoput niceFileName(docHeadline) into documentNameask file "Save Document:" with documentNameput it into documentName-- check if user canceled the operationif documentName is empty thenreturn waisErrorend if-- append a .bin to the end of the file nameput documentName & ".bin" into documentNameBin-- download thew documentset cursor to busyput GetDocToFile(resultDocNum, docType, documentNameBin, "????", "MBIN")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the picture."┬¼with "OK"return waisErrorend if-- Unbinify itput HCMacUnBin(documentNameBin, documentName, "", "")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while decoding the document."┬¼with "OK"return waisErrorend if-- delete the mac binary fileput HCDelFile(documentNameBin) into waisErrorend displayMBIN---------------------------------------------------------function displayJFIF-- download the picture display it-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- automatic or notglobal automatic-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- current document number globalglobal resultDocNum-- JFIF datatype - download it, save it and display it-- ask for the file name to save the document intoput niceFileName(docHeadline) into documentNameask file "Save JFIF Document:" with documentNameput it into documentName-- check if user canceled the operationif documentName is empty thenreturn waisErrorend if-- check if user canceled the operationif documentName is empty thenreturn waisErrorend if-- append a .jfif to the end of the file nameput documentName & ".jfif" into documentNameJFIFset cursor to busyput GetDocToFile(resultDocNum, docType, documentNameJFIF, "ppxi", "JFIF")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the picture."┬¼with "OK"return waisErrorend if-- convert it from a JFIF file to a pict filejfiftopict documentNameJFIF,File,documentName,trueput the result into waisErrorif waisError is empty thenput 0 into waisErrorend ifif waisError Γëá 0 thenanswer "An error occured while decoding the picture."┬¼with "OK"put waisError into message boxreturn waisErrorend if-- delete the JFIF fileput HCDelFile(documentNameJFIF) into waisError-- And display it as a picturepicture documentName,File,zoom,false,0set the itemDelimiter to ":"put the last item of documentName into documentNameset the globalloc of window documentName to deepestset visible of window documentName to trueend displayJFIF---------------------------------------------------------function displayTIFF-- download the picture display it-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- automatic or notglobal automatic-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- current document number globalglobal resultDocNum-- TIFF datatype - download it, save it and display it-- ask for the file name to save the document intoput niceFileName(docHeadline) into documentNameask file "Save TIFF Document:" with documentNameput it into documentName-- check if user canceled the operationif documentName is empty thenreturn waisErrorend if-- check if user canceled the operationif documentName is empty thenreturn waisErrorend ifset cursor to busyput GetDocToFile(resultDocNum, docType, documentName, "????", "TIFF")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the picture."┬¼with "OK"return waisErrorend if-- Add display it as a pictureTIFFWindow documentNameend displayTIFF---------------------------------------------------------function displayGIF-- download the picture display it-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- automatic or notglobal automatic-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- current document number globalglobal resultDocNum-- GIF datatype - download it, save it and display it-- ask for the file name to save the document intoput niceFileName(docHeadline) into documentNameask file "Save GIF Document:" with documentNameput it into documentName-- check if user canceled the operationif documentName is empty thenreturn waisErrorend if-- check if user canceled the operationif documentName is empty thenreturn waisErrorend ifset cursor to busyput GetDocToFile(resultDocNum, docType, documentName, "????", "GIF ")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the picture."┬¼with "OK"return waisErrorend if-- display it as a pictureput dispGIF(documentName, true, 0, true, 0) into resultif hasColorQD() = true thenput resetPalette() into junkend ifend displayGIF---------------------------------------------------------on mouseWithinballoon "Click on this button to view a document in the "┬¼& "results list." & return & "To view an document, click on this "┬¼& "button, then click on the headline in the results list."end mouseWithin---------------------------------------------------------</script>
  3150.     </part>
  3151.     <part>
  3152.         <id>37</id>
  3153.         <type>button</type>
  3154.         <visible> <true /> </visible>
  3155.         <reserved5> 0 </reserved5>
  3156.         <reserved4> 0 </reserved4>
  3157.         <reserved3> 0 </reserved3>
  3158.         <reserved2> 0 </reserved2>
  3159.         <reserved1> 0 </reserved1>
  3160.         <enabled> <true /> </enabled>
  3161.         <rect>
  3162.             <left>388</left>
  3163.             <top>177</top>
  3164.             <right>422</right>
  3165.             <bottom>191</bottom>
  3166.         </rect>
  3167.         <style>rectangle</style>
  3168.         <showName> <true /> </showName>
  3169.         <highlight> <false /> </highlight>
  3170.         <autoHighlight> <false /> </autoHighlight>
  3171.         <sharedHighlight> <true /> </sharedHighlight>
  3172.         <family>0</family>
  3173.         <titleWidth>0</titleWidth>
  3174.         <icon>0</icon>
  3175.         <textAlign>center</textAlign>
  3176.         <font>Geneva</font>
  3177.         <textSize>10</textSize>
  3178.         <textStyle>plain</textStyle>
  3179.         <name>Save</name>
  3180.         <script>---------------------------------------------------------on mouseUp-- select a result for saving-- #define CT_document  0-- #define CT_byte      1-- #define CT_line      2-- #define CT_paragraph 3-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docSitePortglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- document countglobal docCountset hilite of me to trueif cd fld "results" is empty thenset the hilite of me to falseexit mouseUpend if-- look for a second clickif the clickLoc is within the rect of me thendisallowInterruptionrepeat until the mouseClickif the mouseLoc is not within the rect of cd field "results" thenset cursor to handelseset cursor to plusend ifend repeatallowInterruptionif the clickLoc is not within rect of cd field "results" thenset the hilite of me to falseexit mouseUpend ifend ifget the clickLineput it into myClickLineselect itput ( word 2 of myClickLine ) - 1 into resultDocNumset hilite of me to false-- no document headline in this rowif resultDocNum >= docCount thenanswer "Not a valid document"exit mouseUpend if-- get document headline informationput ReadQueryResult(resultDocNum) into waisErrorif waisError Γëá 0 thenanswer "An error occured while reading this document headline."┬¼with "OK"exit mouseUpend if-- if there is more than one document type put up the list pickerput the number of lines of docType into docTypeNumif docTypeNum > 1 thenget showList(docType,"Choose the document type to save:",┬¼false,false,"Select,Cancel",1)--get showList(docType,"Choose the document type to save:",┬¼--false,false,"Select,Cancel^,Custom",1)-- if the user cancelled, we exitif line 1 of it = "Cancel" thenexit mouseUpend if-- if the user wants another type, put up a box,-- else extract the selected document typeif line 1 of it = "Custom" thenput line 1 of docType into docTypeask "Enter the document type you wish to save:" with docType-- if the user cancelled, we exit, else we get the-- document typeif the result is "Cancel" thenexit mouseUpelseput it into docTypeend ifelse-- extract the selected document typeput line 2 of it into docTypeNumput line docTypeNum of docType into docTypeend ifend if-- download the document-- first see if we can find the document type in our application summaryput card field "application_summary" of card "edit_applications" ┬¼into applicationSummaryput empty into fileTypeput 0 into macbinaryset the itemDelimiter to tabrepeat with i = 1 to the number of lines of applicationSummaryget line i of applicationSummaryif the first item of it = docType thenput the third item of it into fileTypeput the fourth item of it into macbinaryexit repeatend ifend repeat-- document type not listed in the application summary,-- see if we can handle it using one of our internal handlers,-- otherwise we give it a '????' file typeif fileType is empty thenif docType = "TEXT" or docType = "WCAT" thenput downloadTEXT() into waisErrorexit mouseUpelse if docType = "WSRC" thenput downloadWSRC() into waisErrorexit mouseUpelse if docType = "PICT" thenput downloadPICT() into waisErrorexit mouseUpelse if docType = "MBIN" thenput downloadMBIN() into waisErrorexit mouseUpelse if docType = "JFIF" or docType = "JPEG" or docType = "JFIF-TBNL" thenput downloadJFIF() into waisErrorexit mouseUpelse if docType = "TIFF" thenput downloadTIFF() into waisErrorexit mouseUpelse if docType = "GIF" thenput downloadGIF() into waisErrorexit mouseUpelse-- set the default file typeput "????" into fileTypeend ifend if-- ask for the file name to save the document intoput niceFileName(docHeadline) into documentNameask file "Save Document ("&docType&"):" with documentNameput it into documentName-- check if user canceled the operationif documentName is empty thenexit mouseUpend if-- download the documentset cursor to busyput GetDocToFile(resultDocNum, docType, documentName, "????" , fileType)┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the document."┬¼with "OK"exit mouseUpend if-- Unbinify it if neededif macbinary = 1 then-- rename the file to a temporary fileput documentName & ".t" into documentNameBinput HCRenameFile(documentName,documentNameBin) into waisErrorput HCMacUnBin(documentNameBin, documentName, "????", fileType)┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while convert the document from MacBinary format."┬¼with "OK"return waisErrorend if-- delete the mac binary fileput HCDelFile(documentNameBin) into waisErrorend ifend mouseUp---------------------------------------------------------function downloadTEXT-- prompt the user for a file name and download the document to that-- file-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docSitePortglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- ask for the file name to save the document intoput niceFileName(docHeadline) into documentNameask file "Save Document:" with documentNameput it into documentName-- check if user canceled the operationif documentName is empty thenreturn waisErrorend if-- download thew documentset cursor to busyput GetDocToFile(resultDocNum, docType, documentName, "????", "TEXT")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the document."┬¼with "OK"return waisErrorend ifend downloadTEXT---------------------------------------------------------function downloadWSRC-- download the source, save it in the sources folder and add it to the-- list of available sources-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docSitePortglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- ask for the file name to save the document intoput niceFileName(docHeadline) into documentName-- ask for the source file nameask "Save source:" with documentNameput it into documentName-- check if user canceled the operationif documentName is empty thenreturn waisErrorend if-- prepend source folderput WaisSourcesFolder & ":" & documentName into documentName-- check for trailing .srcset the itemDelimiter to "."if the last item of documentName Γëá "src" thenput documentName & ".src" into documentNameend if-- check to see if the source file already existsif there is a file documentName thenset the itemDelimiter to ":"answer "Replace existing " & last item of documentName ┬¼with "OK" or "Cancel"if it is "Cancel" thenreturn waisErrorend ifend if-- download the documentset cursor to busyput GetDocToFile(resultDocNum, docType, documentName, "????", "TEXT")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the source."┬¼with "OK"return waisErrorend if-- add it to the sources listanswer "Add this source to the source list?" with "No","Yes"if it is "Yes" thenput card field "sources" into sourceListput addSource(documentName,sourceList) into card field "sources"end ifend downloadWSRC---------------------------------------------------------function downloadPICT-- prompt the user for a file name and download the picture to that-- file-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docSitePortglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- ask for the file name to save the document intoput niceFileName(docHeadline) into documentNameask file "Save Picture:" with documentNameput it into documentName-- check if user canceled the operationif documentName is empty thenreturn waisErrorend if-- append a .bin to the end of the file nameput documentName & ".bin" into documentNameBin-- download thew documentset cursor to busyput GetDocToFile(resultDocNum, docType, documentNameBin, "????", "MBIN")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the picture."┬¼with "OK"return waisErrorend if-- Unbinify itput HCMacUnBin(documentNameBin, documentName, "????", "PICT")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while decoding the picture."┬¼with "OK"return waisErrorend if-- delete the mac binary fileput HCDelFile(documentNameBin) into waisError-- ask the user if he/she wants to see the picture nowanswer "Do you want to look at it now?" with "No" or "Yes"if it = "Yes" then-- display it as a picturepicture documentName,File,zoom,false,0set the itemDelimiter to ":"put the last item of documentName into documentNameset the globalloc of window documentName to deepestset visible of window documentName to trueend ifend downloadPICT---------------------------------------------------------function downloadMBIN-- prompt the user for a file name and download the mac binary to that-- file-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docSitePortglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- ask for the file name to save the document intoput niceFileName(docHeadline) into documentNameask file "Save Document:" with documentNameput it into documentName-- check if user canceled the operationif documentName is empty thenreturn waisErrorend if-- append a .bin to the end of the file nameput documentName & ".bin" into documentNameBin-- download thew documentset cursor to busyput GetDocToFile(resultDocNum, docType, documentNameBin, "????", "MBIN")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the picture."┬¼with "OK"return waisErrorend if-- Unbinify itput HCMacUnBin(documentNameBin, documentName, "", "")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while decoding the document."┬¼with "OK"return waisErrorend if-- delete the mac binary fileput HCDelFile(documentNameBin) into waisErrorend downloadMBIN---------------------------------------------------------function downloadJFIF-- prompt the user for a file name and download the picture to that-- file-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- ask for the file name to save the document intoput niceFileName(docHeadline) into documentNameask file "Save JFIF Document:" with documentNameput it into documentName-- check if user canceled the operationif documentName is empty thenreturn waisErrorend if-- append a .bin to the end of the file nameput documentName & ".jfif" into documentNameJFIF-- download thew documentset cursor to busyput GetDocToFile(resultDocNum, docType, documentNameJFIF, "ppxi", "JFIF")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the picture."┬¼with "OK"return waisErrorend if-- convert it from a JFIF file to a pict filejfiftopict documentNameJFIF,File,documentName,trueput the result into waisErrorif waisError is empty thenput 0 into waisErrorend ifif waisError Γëá 0 thenanswer "An error occured while decoding the picture."┬¼with "OK"put waisError into message boxreturn waisErrorend if-- delete the JFIF fileput HCDelFile(documentNameJFIF) into waisError-- ask the user if he/she wants to see the picture nowanswer "Do you want to look at it now?" with "No" or "Yes"if it = "Yes" then-- display it as a picturepicture documentName,File,zoom,false,0set the itemDelimiter to ":"put the last item of documentName into documentNameset the globalloc of window documentName to deepestset visible of window documentName to trueend ifend downloadJFIF---------------------------------------------------------function downloadTIFF-- prompt the user for a file name and download the picture to that-- file-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- ask for the file name to save the document intoput niceFileName(docHeadline) into documentNameask file "Save TIFF Document:" with documentNameput it into documentName-- check if user canceled the operationif documentName is empty thenreturn waisErrorend if-- download thew documentset cursor to busyput GetDocToFile(resultDocNum, docType, documentName, "????", "TIFF")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the picture."┬¼with "OK"return waisErrorend if-- ask the user if he/she wants to see the picture nowanswer "Do you want to look at it now?" with "No" or "Yes"if it = "Yes" then-- display it as a pictureTIFFWindow documentNameend ifend downloadTIFF---------------------------------------------------------function downloadGIF-- prompt the user for a file name and download the picture to that-- file-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- ask for the file name to save the document intoput niceFileName(docHeadline) into documentNameask file "Save GIF Document:" with documentNameput it into documentName-- check if user canceled the operationif documentName is empty thenreturn waisErrorend if-- download thew documentset cursor to busyput GetDocToFile(resultDocNum, docType, documentName, "????", "GIF")┬¼into waisErrorif waisError Γëá 0 thenanswer "An error occured while downloading the picture."┬¼with "OK"return waisErrorend if-- ask the user if he/she wants to see the picture nowanswer "Do you want to look at it now?" with "No" or "Yes"if it = "Yes" then-- display it as a pictureput dispGIF(documentName, true, 0, true, 0) into resultif hasColorQD() = true thenput resetPalette() into junkend ifend ifend downloadGIF---------------------------------------------------------on mouseWithinballoon "Click on this button to save a document in the "┬¼& "results list." & return & "To save an document, click on this "┬¼& "button, then click on the headline in the results list."end mouseWithin---------------------------------------------------------</script>
  3181.     </part>
  3182.     <part>
  3183.         <id>39</id>
  3184.         <type>button</type>
  3185.         <visible> <true /> </visible>
  3186.         <reserved5> 0 </reserved5>
  3187.         <reserved4> 0 </reserved4>
  3188.         <reserved3> 0 </reserved3>
  3189.         <reserved2> 0 </reserved2>
  3190.         <reserved1> 0 </reserved1>
  3191.         <enabled> <true /> </enabled>
  3192.         <rect>
  3193.             <left>424</left>
  3194.             <top>177</top>
  3195.             <right>501</right>
  3196.             <bottom>191</bottom>
  3197.         </rect>
  3198.         <style>rectangle</style>
  3199.         <showName> <true /> </showName>
  3200.         <highlight> <false /> </highlight>
  3201.         <autoHighlight> <false /> </autoHighlight>
  3202.         <sharedHighlight> <true /> </sharedHighlight>
  3203.         <family>0</family>
  3204.         <titleWidth>0</titleWidth>
  3205.         <icon>0</icon>
  3206.         <textAlign>center</textAlign>
  3207.         <font>Geneva</font>
  3208.         <textSize>10</textSize>
  3209.         <textStyle>plain</textStyle>
  3210.         <name>Add Document</name>
  3211.         <script>on mouseUp-- select a result for viewing-- #define CT_document  0-- #define CT_byte      1-- #define CT_line      2-- #define CT_paragraph 3-- wais folderglobal WaisDocumentsFolderglobal WaisSourcesFolder-- document headline information globals ( per document )global docDatabaseNameglobal docSiteNameglobal docSiteIPglobal docScoreglobal docTypeglobal docLinesglobal docLengthglobal docBestMatchglobal docIDglobal docHeadline-- current document text handle and sizeglobal docHdlglobal docHdlSize-- current document number globalglobal resultDocNum-- rel feedback entry numglobal relEntryNumset hilite of me to trueif cd fld "results" is empty thenset the hilite of me to falseexit mouseUpend ifdisallowInterruptionrepeat until the mouseClickif the mouseLoc is not within the rect of cd field "results" thenset cursor to handelseset cursor to plusend ifend repeatallowInterruptionif the clickLoc is not within rect of cd field "results" thenset the hilite of me to falseexit mouseUpend ifput ( word 2 of the clickLine ) - 1 into resultDocNumset hilite of me to false-- no document headline in this rowif resultDocNum >= docCount thenanswer "Not a valid document"exit mouseUpend if-- get document headline informationput ReadQueryResult(resultDocNum) into waisErrorif waisError Γëá 0 thenanswer "An error occured while reading this document headline."┬¼with "OK"exit mouseUpend if-- set the chunk to CT_documentput 0 into resultChunkTypeput 0 into startByteput 0 into endByte-- add the entry to the RF arrayput RelFeedbackAdd(resultDocNum, docType, resultChunkType, startByte, ┬¼endByte) into waisErrorif waisError Γëá 0 thenanswer "An error occured while adding the document as relevance feedback."┬¼with "OK"exit mouseUpend if-- prepare the RFEntry for the RF fieldput char 1 to 20 of docHeadline into RFEntryput relEntryNum & " " & RFEntry into RFEntryput RFEntry & "[doc]" & return into RFEntryput card field "feedback"into dummyput dummy & RFEntry into RFEntryput RFEntry into card field "feedback"end mouseUpon mouseWithinballoon "Click on this button to add a document to the "┬¼& "relevance feedback entries." & return&& "To add a document, "┬¼& "click on this button, then click on the headline in the results list."end mouseWithin</script>
  3212.     </part>
  3213.     <part>
  3214.         <id>41</id>
  3215.         <type>button</type>
  3216.         <visible> <true /> </visible>
  3217.         <reserved5> 0 </reserved5>
  3218.         <reserved4> 0 </reserved4>
  3219.         <reserved3> 0 </reserved3>
  3220.         <reserved2> 0 </reserved2>
  3221.         <reserved1> 0 </reserved1>
  3222.         <enabled> <true /> </enabled>
  3223.         <rect>
  3224.             <left>364</left>
  3225.             <top>29</top>
  3226.             <right>436</right>
  3227.             <bottom>43</bottom>
  3228.         </rect>
  3229.         <style>rectangle</style>
  3230.         <showName> <true /> </showName>
  3231.         <highlight> <false /> </highlight>
  3232.         <autoHighlight> <true /> </autoHighlight>
  3233.         <sharedHighlight> <true /> </sharedHighlight>
  3234.         <family>0</family>
  3235.         <titleWidth>0</titleWidth>
  3236.         <icon>0</icon>
  3237.         <textAlign>center</textAlign>
  3238.         <font>Geneva</font>
  3239.         <textSize>10</textSize>
  3240.         <textStyle>plain</textStyle>
  3241.         <name>Save Question</name>
  3242.         <script>---------------------------------------------------------on mouseUp-- save the question-- wais folders to store sources, documents and questionsglobal WaisSourcesFolderglobal WaisDocumentsFolderglobal WaisQuestionsFolder-- ask for the question file nameask file "Save question:"put it into questionNameif questionName is empty thenexit mouseUpend ifset the itemDelimiter to ":"set the cursor to busyopen file questionNamewrite "(:question" & return to file questionNamewrite " :version" & space & "2" & return to file questionNamewrite " :seed-words" & space & quote & card field "query" & quote┬¼& return to file questionNamewrite " :relevant-documents" & return to file questionNamewrite " ()" & return to file questionNamewrite " :sourcepath" & space & quote & WaisSourcesFolder & quote┬¼& return to file questionNamewrite " :sources" & space & return to file questionNamewrite "( "  to file questionNamerepeat with i = 1 to the number of lines of card field "sources"write " (:source-id" &  return to file questionNameput line i of card field "sources" into sourceNamewrite "  :filename" & space & quote & sourceName & quote┬¼& return to file questionNamewrite "  )" &  return to file questionNameend repeatwrite "  )" &  return to file questionNamewrite ")" & return to file questionNameclose file questionNameend mouseUp---------------------------------------------------------on mouseWithinballoon "Click on this button to save the question."end mouseWithin---------------------------------------------------------</script>
  3243.     </part>
  3244.     <part>
  3245.         <id>42</id>
  3246.         <type>button</type>
  3247.         <visible> <true /> </visible>
  3248.         <reserved5> 0 </reserved5>
  3249.         <reserved4> 0 </reserved4>
  3250.         <reserved3> 0 </reserved3>
  3251.         <reserved2> 0 </reserved2>
  3252.         <reserved1> 0 </reserved1>
  3253.         <enabled> <true /> </enabled>
  3254.         <rect>
  3255.             <left>290</left>
  3256.             <top>29</top>
  3257.             <right>362</right>
  3258.             <bottom>43</bottom>
  3259.         </rect>
  3260.         <style>rectangle</style>
  3261.         <showName> <true /> </showName>
  3262.         <highlight> <false /> </highlight>
  3263.         <autoHighlight> <true /> </autoHighlight>
  3264.         <sharedHighlight> <true /> </sharedHighlight>
  3265.         <family>0</family>
  3266.         <titleWidth>0</titleWidth>
  3267.         <icon>0</icon>
  3268.         <textAlign>center</textAlign>
  3269.         <font>Geneva</font>
  3270.         <textSize>10</textSize>
  3271.         <textStyle>plain</textStyle>
  3272.         <name>Open Question</name>
  3273.         <script>---------------------------------------------------------on mouseUp-- this handler opens a question---- first it asks for a file name---- then it cycles through reading the file-- and parsing it---- this is really sluggish and speed needs to be-- improvedglobal seedWordsglobal questionSourcesanswer "Are you sure you want to loose the current question?"┬¼with "OK" or "Cancel"if it is "Cancel" thenexit mouseUpend ifanswer file "Open Question:" of type "TEXT" or "WQST"put it into questionNameif questionName is not empty thenset the itemDelimiter to ":"put parseQuestionFile(questionName) into waisErrorput seedWords into card field "query"put questionSources into card field "sources"-- clear out the RF arrayif card field "feedback" is not empty thenput RelFeedbackClear() into waisErrorput empty into card field "feedback"end if-- clear out the resultsput empty into card field "results"end ifend mouseUp---------------------------------------------------------on mouseWithinballoon "Click on this button to load an existing question into "┬¼& "the fields below."end mouseWithin---------------------------------------------------------</script>
  3274.     </part>
  3275.     <content>
  3276.         <layer>card</layer>
  3277.         <id>22</id>
  3278.         <text>Sources</text>
  3279.     </content>
  3280.     <content>
  3281.         <layer>card</layer>
  3282.         <id>23</id>
  3283.         <text>Query</text>
  3284.     </content>
  3285.     <content>
  3286.         <layer>card</layer>
  3287.         <id>24</id>
  3288.         <text>Relevance Feedback</text>
  3289.     </content>
  3290.     <content>
  3291.         <layer>card</layer>
  3292.         <id>25</id>
  3293.         <text>Results</text>
  3294.     </content>
  3295.     <content>
  3296.         <layer>card</layer>
  3297.         <id>26</id>
  3298.         <text>Search Sources</text>
  3299.     </content>
  3300.     <content>
  3301.         <layer>card</layer>
  3302.         <id>1</id>
  3303.         <text>   directory-of-servers</text>
  3304.     </content>
  3305.     <name>query</name>
  3306.     <script>on initializeCardput empty into card field "query" of card "query"put empty into card field "feedback" of card "query"put empty into card field "results" of card "query"end initializeCard</script>
  3307. </card>
  3308.  
  3309.  
  3310. card_5382.xml
  3311. <?xml version="1.0" encoding="utf-8" ?>
  3312. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  3313. <card>
  3314.     <id>5382</id>
  3315.     <filler1>0</filler1>
  3316.     <bitmap>BMAP_5663.pbm</bitmap>
  3317.     <cantDelete> <false /> </cantDelete>
  3318.     <showPict> <true /> </showPict>
  3319.     <dontSearch> <false /> </dontSearch>
  3320.     <owner>2583</owner>
  3321.     <link rel="stylesheet" type="text/css" href="stylesheet_3325.css" />
  3322.     <part>
  3323.         <id>1</id>
  3324.         <type>button</type>
  3325.         <visible> <true /> </visible>
  3326.         <reserved5> 0 </reserved5>
  3327.         <reserved4> 0 </reserved4>
  3328.         <reserved3> 0 </reserved3>
  3329.         <reserved2> 0 </reserved2>
  3330.         <reserved1> 0 </reserved1>
  3331.         <enabled> <true /> </enabled>
  3332.         <rect>
  3333.             <left>136</left>
  3334.             <top>85</top>
  3335.             <right>337</right>
  3336.             <bottom>126</bottom>
  3337.         </rect>
  3338.         <style>shadow</style>
  3339.         <showName> <true /> </showName>
  3340.         <highlight> <false /> </highlight>
  3341.         <autoHighlight> <true /> </autoHighlight>
  3342.         <sharedHighlight> <true /> </sharedHighlight>
  3343.         <family>0</family>
  3344.         <titleWidth>0</titleWidth>
  3345.         <icon>0</icon>
  3346.         <textAlign>center</textAlign>
  3347.         <font>Geneva</font>
  3348.         <textSize>14</textSize>
  3349.         <textStyle>bold</textStyle>
  3350.         <name>Query Databases</name>
  3351.         <script>on mouseUpgo to card "query"end mouseUpon mouseWithinballoon "Click on this button to query wais sources."end mouseWithin</script>
  3352.     </part>
  3353.     <part>
  3354.         <id>2</id>
  3355.         <type>button</type>
  3356.         <visible> <true /> </visible>
  3357.         <reserved5> 0 </reserved5>
  3358.         <reserved4> 0 </reserved4>
  3359.         <reserved3> 0 </reserved3>
  3360.         <reserved2> 0 </reserved2>
  3361.         <reserved1> 0 </reserved1>
  3362.         <enabled> <true /> </enabled>
  3363.         <rect>
  3364.             <left>137</left>
  3365.             <top>138</top>
  3366.             <right>338</right>
  3367.             <bottom>179</bottom>
  3368.         </rect>
  3369.         <style>shadow</style>
  3370.         <showName> <true /> </showName>
  3371.         <highlight> <false /> </highlight>
  3372.         <autoHighlight> <true /> </autoHighlight>
  3373.         <sharedHighlight> <true /> </sharedHighlight>
  3374.         <family>0</family>
  3375.         <titleWidth>0</titleWidth>
  3376.         <icon>0</icon>
  3377.         <textAlign>center</textAlign>
  3378.         <font>Geneva</font>
  3379.         <textSize>14</textSize>
  3380.         <textStyle>bold</textStyle>
  3381.         <name>Edit Sources</name>
  3382.         <script>on mouseUpgo to card "edit_sources"end mouseUpon mouseWithinballoon "Click on this button to edit wais sources."end mouseWithin</script>
  3383.     </part>
  3384.     <part>
  3385.         <id>3</id>
  3386.         <type>field</type>
  3387.         <visible> <true /> </visible>
  3388.         <dontWrap> <false /> </dontWrap>
  3389.         <dontSearch> <false /> </dontSearch>
  3390.         <sharedText> <false /> </sharedText>
  3391.         <fixedLineHeight> <false /> </fixedLineHeight>
  3392.         <autoTab> <false /> </autoTab>
  3393.         <lockText> <true /> </lockText>
  3394.         <rect>
  3395.             <left>137</left>
  3396.             <top>43</top>
  3397.             <right>338</right>
  3398.             <bottom>66</bottom>
  3399.         </rect>
  3400.         <style>transparent</style>
  3401.         <autoSelect> <false /> </autoSelect>
  3402.         <showLines> <false /> </showLines>
  3403.         <wideMargins> <false /> </wideMargins>
  3404.         <multipleLines> <false /> </multipleLines>
  3405.         <reservedFamily> 0 </reservedFamily>
  3406.         <titleWidth>0</titleWidth>
  3407.         <icon>0</icon>
  3408.         <textAlign>center</textAlign>
  3409.         <font>Palatino</font>
  3410.         <textSize>24</textSize>
  3411.         <textStyle>extend</textStyle>
  3412.         <textStyle>bold</textStyle>
  3413.         <textHeight>32</textHeight>
  3414.         <name>main_menu_label</name>
  3415.         <script></script>
  3416.     </part>
  3417.     <part>
  3418.         <id>15</id>
  3419.         <type>button</type>
  3420.         <visible> <true /> </visible>
  3421.         <reserved5> 0 </reserved5>
  3422.         <reserved4> 0 </reserved4>
  3423.         <reserved3> 0 </reserved3>
  3424.         <reserved2> 0 </reserved2>
  3425.         <reserved1> 0 </reserved1>
  3426.         <enabled> <true /> </enabled>
  3427.         <rect>
  3428.             <left>137</left>
  3429.             <top>193</top>
  3430.             <right>338</right>
  3431.             <bottom>234</bottom>
  3432.         </rect>
  3433.         <style>shadow</style>
  3434.         <showName> <true /> </showName>
  3435.         <highlight> <false /> </highlight>
  3436.         <autoHighlight> <true /> </autoHighlight>
  3437.         <sharedHighlight> <true /> </sharedHighlight>
  3438.         <family>0</family>
  3439.         <titleWidth>0</titleWidth>
  3440.         <icon>0</icon>
  3441.         <textAlign>center</textAlign>
  3442.         <font>Geneva</font>
  3443.         <textSize>14</textSize>
  3444.         <textStyle>bold</textStyle>
  3445.         <name>Edit Preferences</name>
  3446.         <script>on mouseUpgo to card "edit_preferences"end mouseUpon mouseWithinballoon "Click on this button to edit the stack preferences."end mouseWithin</script>
  3447.     </part>
  3448.     <part>
  3449.         <id>17</id>
  3450.         <type>button</type>
  3451.         <visible> <true /> </visible>
  3452.         <reserved5> 0 </reserved5>
  3453.         <reserved4> 0 </reserved4>
  3454.         <reserved3> 0 </reserved3>
  3455.         <reserved2> 0 </reserved2>
  3456.         <reserved1> 0 </reserved1>
  3457.         <enabled> <true /> </enabled>
  3458.         <rect>
  3459.             <left>137</left>
  3460.             <top>247</top>
  3461.             <right>338</right>
  3462.             <bottom>288</bottom>
  3463.         </rect>
  3464.         <style>shadow</style>
  3465.         <showName> <true /> </showName>
  3466.         <highlight> <false /> </highlight>
  3467.         <autoHighlight> <true /> </autoHighlight>
  3468.         <sharedHighlight> <true /> </sharedHighlight>
  3469.         <family>0</family>
  3470.         <titleWidth>0</titleWidth>
  3471.         <icon>0</icon>
  3472.         <textAlign>center</textAlign>
  3473.         <font>Geneva</font>
  3474.         <textSize>14</textSize>
  3475.         <textStyle>bold</textStyle>
  3476.         <name>Edit Applications</name>
  3477.         <script>on mouseUpgo to card "edit_applications"end mouseUpon mouseWithinballoon "Click on this button to edit the stack applications."end mouseWithin</script>
  3478.     </part>
  3479.     <content>
  3480.         <layer>card</layer>
  3481.         <id>3</id>
  3482.         <text>Main Menu</text>
  3483.     </content>
  3484.     <name>menu</name>
  3485.     <script>on initializeCardend initializeCard</script>
  3486. </card>
  3487.  
  3488.  
  3489. card_2955.xml
  3490. <?xml version="1.0" encoding="utf-8" ?>
  3491. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  3492. <card>
  3493.     <id>2955</id>
  3494.     <filler1>0</filler1>
  3495.     <bitmap>BMAP_3613.pbm</bitmap>
  3496.     <cantDelete> <false /> </cantDelete>
  3497.     <showPict> <true /> </showPict>
  3498.     <dontSearch> <false /> </dontSearch>
  3499.     <owner>2583</owner>
  3500.     <link rel="stylesheet" type="text/css" href="stylesheet_3325.css" />
  3501.     <part>
  3502.         <id>3</id>
  3503.         <type>field</type>
  3504.         <visible> <true /> </visible>
  3505.         <dontWrap> <false /> </dontWrap>
  3506.         <dontSearch> <false /> </dontSearch>
  3507.         <sharedText> <false /> </sharedText>
  3508.         <fixedLineHeight> <false /> </fixedLineHeight>
  3509.         <autoTab> <false /> </autoTab>
  3510.         <lockText> <true /> </lockText>
  3511.         <rect>
  3512.             <left>31</left>
  3513.             <top>220</top>
  3514.             <right>221</right>
  3515.             <bottom>300</bottom>
  3516.         </rect>
  3517.         <style>transparent</style>
  3518.         <autoSelect> <false /> </autoSelect>
  3519.         <showLines> <false /> </showLines>
  3520.         <wideMargins> <false /> </wideMargins>
  3521.         <multipleLines> <false /> </multipleLines>
  3522.         <reservedFamily> 0 </reservedFamily>
  3523.         <titleWidth>0</titleWidth>
  3524.         <icon>0</icon>
  3525.         <textAlign>left</textAlign>
  3526.         <font>Geneva</font>
  3527.         <textSize>10</textSize>
  3528.         <textStyle>plain</textStyle>
  3529.         <textHeight>13</textHeight>
  3530.         <name>HyperWais Version</name>
  3531.         <script></script>
  3532.     </part>
  3533.     <part>
  3534.         <id>4</id>
  3535.         <type>field</type>
  3536.         <visible> <true /> </visible>
  3537.         <dontWrap> <false /> </dontWrap>
  3538.         <dontSearch> <false /> </dontSearch>
  3539.         <sharedText> <false /> </sharedText>
  3540.         <fixedLineHeight> <false /> </fixedLineHeight>
  3541.         <autoTab> <false /> </autoTab>
  3542.         <lockText> <true /> </lockText>
  3543.         <rect>
  3544.             <left>289</left>
  3545.             <top>220</top>
  3546.             <right>479</right>
  3547.             <bottom>300</bottom>
  3548.         </rect>
  3549.         <style>transparent</style>
  3550.         <autoSelect> <false /> </autoSelect>
  3551.         <showLines> <false /> </showLines>
  3552.         <wideMargins> <false /> </wideMargins>
  3553.         <multipleLines> <false /> </multipleLines>
  3554.         <reservedFamily> 0 </reservedFamily>
  3555.         <titleWidth>0</titleWidth>
  3556.         <icon>0</icon>
  3557.         <textAlign>left</textAlign>
  3558.         <font>Geneva</font>
  3559.         <textSize>10</textSize>
  3560.         <textStyle>plain</textStyle>
  3561.         <textHeight>13</textHeight>
  3562.         <name>HyperWais Credits</name>
  3563.         <script></script>
  3564.     </part>
  3565.     <part>
  3566.         <id>5</id>
  3567.         <type>field</type>
  3568.         <visible> <true /> </visible>
  3569.         <dontWrap> <false /> </dontWrap>
  3570.         <dontSearch> <false /> </dontSearch>
  3571.         <sharedText> <false /> </sharedText>
  3572.         <fixedLineHeight> <false /> </fixedLineHeight>
  3573.         <autoTab> <false /> </autoTab>
  3574.         <lockText> <true /> </lockText>
  3575.         <rect>
  3576.             <left>108</left>
  3577.             <top>38</top>
  3578.             <right>382</right>
  3579.             <bottom>69</bottom>
  3580.         </rect>
  3581.         <style>transparent</style>
  3582.         <autoSelect> <false /> </autoSelect>
  3583.         <showLines> <false /> </showLines>
  3584.         <wideMargins> <false /> </wideMargins>
  3585.         <multipleLines> <false /> </multipleLines>
  3586.         <reservedFamily> 0 </reservedFamily>
  3587.         <titleWidth>0</titleWidth>
  3588.         <icon>0</icon>
  3589.         <textAlign>center</textAlign>
  3590.         <font>Palatino</font>
  3591.         <textSize>24</textSize>
  3592.         <textStyle>extend</textStyle>
  3593.         <textStyle>bold</textStyle>
  3594.         <textHeight>32</textHeight>
  3595.         <name>title_label</name>
  3596.         <script></script>
  3597.     </part>
  3598.     <part>
  3599.         <id>6</id>
  3600.         <type>field</type>
  3601.         <visible> <true /> </visible>
  3602.         <dontWrap> <false /> </dontWrap>
  3603.         <dontSearch> <false /> </dontSearch>
  3604.         <sharedText> <false /> </sharedText>
  3605.         <fixedLineHeight> <false /> </fixedLineHeight>
  3606.         <autoTab> <false /> </autoTab>
  3607.         <lockText> <true /> </lockText>
  3608.         <rect>
  3609.             <left>41</left>
  3610.             <top>114</top>
  3611.             <right>461</right>
  3612.             <bottom>174</bottom>
  3613.         </rect>
  3614.         <style>transparent</style>
  3615.         <autoSelect> <false /> </autoSelect>
  3616.         <showLines> <false /> </showLines>
  3617.         <wideMargins> <false /> </wideMargins>
  3618.         <multipleLines> <false /> </multipleLines>
  3619.         <reservedFamily> 0 </reservedFamily>
  3620.         <titleWidth>0</titleWidth>
  3621.         <icon>0</icon>
  3622.         <textAlign>center</textAlign>
  3623.         <font>Palatino</font>
  3624.         <textSize>24</textSize>
  3625.         <textStyle>extend</textStyle>
  3626.         <textStyle>bold</textStyle>
  3627.         <textHeight>32</textHeight>
  3628.         <name>title_label</name>
  3629.         <script></script>
  3630.     </part>
  3631.     <part>
  3632.         <id>10</id>
  3633.         <type>button</type>
  3634.         <visible> <true /> </visible>
  3635.         <reserved5> 0 </reserved5>
  3636.         <reserved4> 0 </reserved4>
  3637.         <reserved3> 0 </reserved3>
  3638.         <reserved2> 0 </reserved2>
  3639.         <reserved1> 0 </reserved1>
  3640.         <enabled> <true /> </enabled>
  3641.         <rect>
  3642.             <left>259</left>
  3643.             <top>163</top>
  3644.             <right>366</right>
  3645.             <bottom>218</bottom>
  3646.         </rect>
  3647.         <style>transparent</style>
  3648.         <showName> <false /> </showName>
  3649.         <highlight> <false /> </highlight>
  3650.         <autoHighlight> <true /> </autoHighlight>
  3651.         <sharedHighlight> <true /> </sharedHighlight>
  3652.         <family>0</family>
  3653.         <titleWidth>0</titleWidth>
  3654.         <icon>5418</icon>
  3655.         <textAlign>center</textAlign>
  3656.         <font>Chicago</font>
  3657.         <textSize>12</textSize>
  3658.         <textStyle>plain</textStyle>
  3659.         <name>CM</name>
  3660.         <script>on mouseWithinrepeat foreverrepeat with i = 1 to 6set the icon of card button "Mac" to item i of ┬¼"MAC-1,MAC-2,MAC-3,MAC-4,MAC-5,MAC-6"put random(6) into jset the icon of card button "CM" to item j of ┬¼"CM2-1,CM2-2,CM2-3,CM2-4,CM2-5,CM2-6"if the mouseLoc is not within the rect of me thenexit mouseWithinend ifwait 5 ticksend repeatend repeatend mouseWithin</script>
  3661.     </part>
  3662.     <part>
  3663.         <id>11</id>
  3664.         <type>button</type>
  3665.         <visible> <true /> </visible>
  3666.         <reserved5> 0 </reserved5>
  3667.         <reserved4> 0 </reserved4>
  3668.         <reserved3> 0 </reserved3>
  3669.         <reserved2> 0 </reserved2>
  3670.         <reserved1> 0 </reserved1>
  3671.         <enabled> <true /> </enabled>
  3672.         <rect>
  3673.             <left>142</left>
  3674.             <top>161</top>
  3675.             <right>249</right>
  3676.             <bottom>218</bottom>
  3677.         </rect>
  3678.         <style>transparent</style>
  3679.         <showName> <false /> </showName>
  3680.         <highlight> <false /> </highlight>
  3681.         <autoHighlight> <true /> </autoHighlight>
  3682.         <sharedHighlight> <true /> </sharedHighlight>
  3683.         <family>0</family>
  3684.         <titleWidth>0</titleWidth>
  3685.         <icon>11932</icon>
  3686.         <textAlign>center</textAlign>
  3687.         <font>Chicago</font>
  3688.         <textSize>12</textSize>
  3689.         <textStyle>plain</textStyle>
  3690.         <name>Mac</name>
  3691.         <script>on mouseWithinrepeat foreverrepeat with i = 1 to 6set the icon of card button "Mac" to item i of ┬¼"MAC-1,MAC-2,MAC-3,MAC-4,MAC-5,MAC-6"put random(6) into jset the icon of card button "CM" to item j of ┬¼"CM2-1,CM2-2,CM2-3,CM2-4,CM2-5,CM2-6"if the mouseLoc is not within the rect of me thenexit mouseWithinend ifwait 5 ticksend repeatend repeatend mouseWithin</script>
  3692.     </part>
  3693.     <content>
  3694.         <layer>card</layer>
  3695.         <id>3</id>
  3696.         <text>Hypercard: 2.1WAIS: 8-b5System: 7.0/7.0.1/7.1HyperWais: 1.9Wais listener: 1.9</text>
  3697.     </content>
  3698.     <content>
  3699.         <layer>card</layer>
  3700.         <id>4</id>
  3701.         <text>Developed By:Fran├ºois J.M. Schiettecatte(Software Consultant)Helped By:Harry W. Morris(WAIS Inc.)</text>
  3702.     </content>
  3703.     <content>
  3704.         <layer>card</layer>
  3705.         <id>5</id>
  3706.         <text>HYPERWAIS</text>
  3707.     </content>
  3708.     <content>
  3709.         <layer>card</layer>
  3710.         <id>6</id>
  3711.         <text>A Hypercard Interface to WAIS </text>
  3712.     </content>
  3713.     <name>title_screen</name>
  3714.     <script>---------------------------------------------------------on mouseUp-- Here we need to go to the menugo to card "menu"end mouseUp---------------------------------------------------------on initializeCardend initializeCard---------------------------------------------------------</script>
  3715. </card>
  3716.  
  3717.  
  3718.